summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-10-16 08:56:46 +0000
committerDuncan Sands <baldrick@free.fr>2008-10-16 08:56:46 +0000
commit078ae1e6ee67dd9aaa8fe1581b97dc86e94a4d15 (patch)
treea7a225a4410550b41b5ccb6a198153979e9dfffd
parenta3548256508d8e10e0ca24d4dd15270a19e07f9b (diff)
downloadllvm-078ae1e6ee67dd9aaa8fe1581b97dc86e94a4d15.tar.gz
llvm-078ae1e6ee67dd9aaa8fe1581b97dc86e94a4d15.tar.bz2
llvm-078ae1e6ee67dd9aaa8fe1581b97dc86e94a4d15.tar.xz
Testcase for PR2762.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57633 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/2008-10-16-VecUnaryOp.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-10-16-VecUnaryOp.ll b/test/CodeGen/X86/2008-10-16-VecUnaryOp.ll
new file mode 100644
index 0000000000..d51e3760f1
--- /dev/null
+++ b/test/CodeGen/X86/2008-10-16-VecUnaryOp.ll
@@ -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
+}