aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-30 07:52:03 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-30 07:52:03 +0000
commita5e496ff07099d3ae9c36bfb5fcca16cf3386f94 (patch)
tree394a41f791e6d426f4c4c14372c47f3d38a1db93 /test
parent66ffe6be0c7b50100a00cb0cc87a5d4983818572 (diff)
downloadexternal_llvm-a5e496ff07099d3ae9c36bfb5fcca16cf3386f94.zip
external_llvm-a5e496ff07099d3ae9c36bfb5fcca16cf3386f94.tar.gz
external_llvm-a5e496ff07099d3ae9c36bfb5fcca16cf3386f94.tar.bz2
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/PowerPC/vec_fneg.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/vec_fneg.ll b/test/CodeGen/PowerPC/vec_fneg.ll
new file mode 100644
index 0000000..2ef2099
--- /dev/null
+++ b/test/CodeGen/PowerPC/vec_fneg.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsubfp
+
+define void @t(<4 x float>* %A) {
+ %tmp2 = load <4 x float>* %A
+ %tmp3 = sub <4 x float> < float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00 >, %tmp2
+ store <4 x float> %tmp3, <4 x float>* %A
+ ret void
+}