Testcase for PR2762.
authorDuncan Sands <baldrick@free.fr>
Thu, 16 Oct 2008 08:56:46 +0000 (08:56 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 16 Oct 2008 08:56:46 +0000 (08:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57633 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2008-10-16-VecUnaryOp.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/2008-10-16-VecUnaryOp.ll b/test/CodeGen/X86/2008-10-16-VecUnaryOp.ll
new file mode 100644 (file)
index 0000000..d51e376
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -enable-legalize-types
+; PR2762
+define void @foo(<4 x i32>* %p, <4 x double>* %q) {
+  %n = load <4 x i32>* %p
+  %z = sitofp <4 x i32> %n to <4 x double>
+  store <4 x double> %z, <4 x double>* %q
+  ret void
+}