summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-10 16:33:38 +0000
committerChris Lattner <sabre@nondot.org>2008-07-10 16:33:38 +0000
commit5e718e7431c136a1c04ce895c00bc1a5b1feaf8d (patch)
tree42abea368c40e1ce056e0b800a02348102809d51 /llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll
parentabdcac66dc267d9b22322c8a520bdf853efa56fd (diff)
downloadbcm5719-llvm-5e718e7431c136a1c04ce895c00bc1a5b1feaf8d.tar.gz
bcm5719-llvm-5e718e7431c136a1c04ce895c00bc1a5b1feaf8d.zip
Fix an altivec constant miscompilation that Duncan found through
his work on legalizetypes. llvm-svn: 53410
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll b/llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll
new file mode 100644
index 00000000000..b6b9c89730a
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vadduhm
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsubuhm
+
+define <4 x i32> @test() nounwind {
+ ret <4 x i32> < i32 4293066722, i32 4293066722, i32 4293066722, i32 4293066722>
+}
+
+define <4 x i32> @test2() nounwind {
+ ret <4 x i32> < i32 1114129, i32 1114129, i32 1114129, i32 1114129>
+}
OpenPOWER on IntegriCloud