diff --git a/test/CodeGen/X86/x86-64-shortint.ll b/test/CodeGen/X86/x86-64-shortint.ll new file mode 100644 index 00000000000..30c750e3794 --- /dev/null +++ b/test/CodeGen/X86/x86-64-shortint.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc | grep movswl + +target datalayout = "e-p:64:64" +target triple = "x86_64-apple-darwin8" + +implementation ; Functions: + +define void @bar(i16 zext %A) { + tail call void @foo( i16 %A sext ) + ret void +} +declare void @foo(i16 sext ) +