new testcase
authorChris Lattner <sabre@nondot.org>
Sun, 25 Feb 2007 23:08:29 +0000 (23:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 25 Feb 2007 23:08:29 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34614 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/x86-64-shortint.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/x86-64-shortint.ll b/test/CodeGen/X86/x86-64-shortint.ll
new file mode 100644 (file)
index 0000000..30c750e
--- /dev/null
@@ -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 )
+