diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-12-15 01:02:25 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-12-15 01:02:25 +0000 |
commit | a860b189e4bce05346754d7475541bcd851e195b (patch) | |
tree | ca96976941cacf61f7f9c32f1490bf2fef6218d5 /test/CodeGen | |
parent | 4e5a1ab10b62b7ca842afd0e99ac982153f217fb (diff) | |
download | external_llvm-a860b189e4bce05346754d7475541bcd851e195b.zip external_llvm-a860b189e4bce05346754d7475541bcd851e195b.tar.gz external_llvm-a860b189e4bce05346754d7475541bcd851e195b.tar.bz2 |
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')
-rw-r--r-- | test/CodeGen/X86/avx-basic.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-basic.ll b/test/CodeGen/X86/avx-basic.ll index edbdc06..7802606 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 +} |