Don't force promotion of return arguments on the callee.
[oota-llvm.git] / test / CodeGen / X86 / sext-trunc.ll
1 ; RUN: llvm-as < %s | llc -march=x86 > %t
2 ; RUN: grep movb %t
3 ; RUN: not grep movsbl %t
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 }