diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-06-10 20:33:50 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-06-10 20:33:50 +0000 |
commit | b114fd65fcf43206652c0eacd0fcecce9ab5f17a (patch) | |
tree | 0b604eb5fa38c50c837cb11711777946a6746816 /llvm/test/CodeGen/X86/fp-logic.ll | |
parent | 2e50fedb2ca7e41028eac179dc3966220de1365d (diff) | |
download | bcm5719-llvm-b114fd65fcf43206652c0eacd0fcecce9ab5f17a.tar.gz bcm5719-llvm-b114fd65fcf43206652c0eacd0fcecce9ab5f17a.zip |
[x86] enable bitcasted fabs/fneg transforms
The vector cases don't change because we already have folds in X86ISelLowering
to look through and remove bitcasts.
llvm-svn: 272427
Diffstat (limited to 'llvm/test/CodeGen/X86/fp-logic.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/fp-logic.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/fp-logic.ll b/llvm/test/CodeGen/X86/fp-logic.ll index b5f1349cada..9ab6751d654 100644 --- a/llvm/test/CodeGen/X86/fp-logic.ll +++ b/llvm/test/CodeGen/X86/fp-logic.ll @@ -265,8 +265,7 @@ define float @movmsk(float %x) { define double @bitcast_fabs(double %x) { ; CHECK-LABEL: bitcast_fabs: ; CHECK: # BB#0: -; CHECK-NEXT: movsd {{.*#+}} xmm1 = mem[0],zero -; CHECK-NEXT: andpd %xmm1, %xmm0 +; CHECK-NEXT: andpd {{.*}}(%rip), %xmm0 ; CHECK-NEXT: retq ; %bc1 = bitcast double %x to i64 @@ -278,8 +277,7 @@ define double @bitcast_fabs(double %x) { define float @bitcast_fneg(float %x) { ; CHECK-LABEL: bitcast_fneg: ; CHECK: # BB#0: -; CHECK-NEXT: movss {{.*#+}} xmm1 = mem[0],zero,zero,zero -; CHECK-NEXT: xorps %xmm1, %xmm0 +; CHECK-NEXT: xorps {{.*}}(%rip), %xmm0 ; CHECK-NEXT: retq ; %bc1 = bitcast float %x to i32 |