summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-basic.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-15 01:02:25 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-15 01:02:25 +0000
commita860b189e4bce05346754d7475541bcd851e195b (patch)
treeca96976941cacf61f7f9c32f1490bf2fef6218d5 /test/CodeGen/X86/avx-basic.ll
parent4e5a1ab10b62b7ca842afd0e99ac982153f217fb (diff)
downloadllvm-a860b189e4bce05346754d7475541bcd851e195b.tar.gz
llvm-a860b189e4bce05346754d7475541bcd851e195b.tar.bz2
llvm-a860b189e4bce05346754d7475541bcd851e195b.tar.xz
Add support for lowering fneg when AVX is enabled.
rdar://10566486 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-basic.ll')
-rw-r--r--test/CodeGen/X86/avx-basic.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-basic.ll b/test/CodeGen/X86/avx-basic.ll
index edbdc06a1c..78026069df 100644
--- a/test/CodeGen/X86/avx-basic.ll
+++ b/test/CodeGen/X86/avx-basic.ll
@@ -105,3 +105,11 @@ allocas:
ret <8 x i32> %updatedret.i30.i
}
+;;;; Don't crash on fneg
+; rdar://10566486
+; CHECK: fneg
+; CHECK: vxorps
+define <16 x float> @fneg(<16 x float> addrspace(1)* nocapture %out) nounwind {
+ %1 = fsub <16 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>
+ ret <16 x float> %1
+}