diff options
Diffstat (limited to 'test/CodeGen/X86/x86-64-shortint.ll')
-rw-r--r-- | test/CodeGen/X86/x86-64-shortint.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/x86-64-shortint.ll b/test/CodeGen/X86/x86-64-shortint.ll new file mode 100644 index 0000000..d136450 --- /dev/null +++ b/test/CodeGen/X86/x86-64-shortint.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc | grep movswl + +target datalayout = "e-p:64:64" +target triple = "x86_64-apple-darwin8" + + +define void @bar(i16 zext %A) { + tail call void @foo( i16 %A sext ) + ret void +} +declare void @foo(i16 sext ) + |