Dan Gohman | 759ed29 | 2008-07-31 00:50:31 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 > %t |
Rafael Espindola | 0c9872b | 2009-03-17 23:43:59 +0000 | [diff] [blame] | 2 | ; RUN: grep movb %t |
3 | ; RUN: not grep movsbl %t | ||||
Dan Gohman | 759ed29 | 2008-07-31 00:50:31 +0000 | [diff] [blame] | 4 | ; RUN: not grep movz %t |
5 | ; RUN: not grep and %t | ||||
6 | |||||
7 | define i8 @foo(i16 signext %x) signext nounwind { | ||||
8 | %retval56 = trunc i16 %x to i8 | ||||
9 | ret i8 %retval56 | ||||
10 | } |