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
commitb6dad9fa8efe848bba39681e34131a7093df93b6 (patch)
tree394a41f791e6d426f4c4c14372c47f3d38a1db93 /test
parentc5912e3990403e5414d1120265e752b76220169f (diff)
downloadexternal_llvm-b6dad9fa8efe848bba39681e34131a7093df93b6.zip
external_llvm-b6dad9fa8efe848bba39681e34131a7093df93b6.tar.gz
external_llvm-b6dad9fa8efe848bba39681e34131a7093df93b6.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
+}