blob: df401564c24f91e28673bb0f1acb2a016c2b631c [file] [log] [blame]
Dan Gohman759ed292008-07-31 00:50:31 +00001; RUN: llvm-as < %s | llc -march=x86 > %t
Rafael Espindola0c9872b2009-03-17 23:43:59 +00002; RUN: grep movb %t
3; RUN: not grep movsbl %t
Dan Gohman759ed292008-07-31 00:50:31 +00004; RUN: not grep movz %t
5; RUN: not grep and %t
6
7define i8 @foo(i16 signext %x) signext nounwind {
8 %retval56 = trunc i16 %x to i8
9 ret i8 %retval56
10}