diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-11 09:44:33 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-11 09:44:33 +0000 |
| commit | 287e78c82bd7343247ba1cdf236a638f7aef17dd (patch) | |
| tree | b3cab869737a08876fb8b55ef3e6d3419e44b649 /llvm/test/CodeGen/X86/fp-fold.ll | |
| parent | 8c865cacda64ef0e4fc3e18335191c5eb28dd3d5 (diff) | |
| download | bcm5719-llvm-287e78c82bd7343247ba1cdf236a638f7aef17dd.tar.gz bcm5719-llvm-287e78c82bd7343247ba1cdf236a638f7aef17dd.zip | |
[DAGCombine] GetNegatedExpression - constant float vector support (PR42105)
Add support for negation of constant build vectors.
Differential Revision: https://reviews.llvm.org/D62963
llvm-svn: 363040
Diffstat (limited to 'llvm/test/CodeGen/X86/fp-fold.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/fp-fold.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/fp-fold.ll b/llvm/test/CodeGen/X86/fp-fold.ll index 45cfa58703a..60f29eb02b4 100644 --- a/llvm/test/CodeGen/X86/fp-fold.ll +++ b/llvm/test/CodeGen/X86/fp-fold.ll @@ -124,7 +124,6 @@ define <4 x float> @fsub_neg_y_vector(<4 x float> %x, <4 x float> %y) { ; ANY-LABEL: fsub_neg_y_vector: ; ANY: # %bb.0: ; ANY-NEXT: mulps {{.*}}(%rip), %xmm0 -; ANY-NEXT: xorps {{.*}}(%rip), %xmm0 ; ANY-NEXT: retq %mul = fmul <4 x float> %x, <float 5.0, float 5.0, float 5.0, float 5.0> %add = fadd <4 x float> %mul, %y @@ -136,7 +135,6 @@ define <4 x float> @fsub_neg_y_vector_nonuniform(<4 x float> %x, <4 x float> %y) ; ANY-LABEL: fsub_neg_y_vector_nonuniform: ; ANY: # %bb.0: ; ANY-NEXT: mulps {{.*}}(%rip), %xmm0 -; ANY-NEXT: xorps {{.*}}(%rip), %xmm0 ; ANY-NEXT: retq %mul = fmul <4 x float> %x, <float 5.0, float 6.0, float 7.0, float 8.0> %add = fadd <4 x float> %mul, %y @@ -159,7 +157,6 @@ define <4 x float> @fsub_neg_y_commute_vector(<4 x float> %x, <4 x float> %y) { ; ANY-LABEL: fsub_neg_y_commute_vector: ; ANY: # %bb.0: ; ANY-NEXT: mulps {{.*}}(%rip), %xmm0 -; ANY-NEXT: xorps {{.*}}(%rip), %xmm0 ; ANY-NEXT: retq %mul = fmul <4 x float> %x, <float 5.0, float 5.0, float 5.0, float 5.0> %add = fadd <4 x float> %y, %mul @@ -233,7 +230,8 @@ define float @fsub_negzero(float %x) { define <4 x float> @fsub_negzero_vector(<4 x float> %x) { ; STRICT-LABEL: fsub_negzero_vector: ; STRICT: # %bb.0: -; STRICT-NEXT: subps {{.*}}(%rip), %xmm0 +; STRICT-NEXT: xorps %xmm1, %xmm1 +; STRICT-NEXT: addps %xmm1, %xmm0 ; STRICT-NEXT: retq ; ; UNSAFE-LABEL: fsub_negzero_vector: |

