summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-08-15 17:01:54 +0000
committerSanjay Patel <spatel@rotateright.com>2015-08-15 17:01:54 +0000
commit40d4eb40f683447f226eadeddcd37919e78039a4 (patch)
treee7071e6772ffb2772e3cfc516f354201a1de1fb0 /llvm/test
parentd65ace84c7314b04ab462cd133c0982dafcdea58 (diff)
downloadbcm5719-llvm-40d4eb40f683447f226eadeddcd37919e78039a4.tar.gz
bcm5719-llvm-40d4eb40f683447f226eadeddcd37919e78039a4.zip
[x86] enable machine combiner reassociations for scalar single-precision minimums
llvm-svn: 245166
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/machine-combiner.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/machine-combiner.ll b/llvm/test/CodeGen/X86/machine-combiner.ll
index 900a43f55d3..3b5e6d212e3 100644
--- a/llvm/test/CodeGen/X86/machine-combiner.ll
+++ b/llvm/test/CodeGen/X86/machine-combiner.ll
@@ -358,21 +358,21 @@ define <4 x double> @reassociate_muls_v4f64(<4 x double> %x0, <4 x double> %x1,
ret <4 x double> %t2
}
-; TODO: Verify that SSE and AVX scalar single-precision minimum ops are reassociated.
+; Verify that SSE and AVX scalar single-precision minimum ops are reassociated.
define float @reassociate_mins_single(float %x0, float %x1, float %x2, float %x3) {
; SSE-LABEL: reassociate_mins_single:
; SSE: # BB#0:
; SSE-NEXT: divss %xmm1, %xmm0
+; SSE-NEXT: minss %xmm3, %xmm2
; SSE-NEXT: minss %xmm2, %xmm0
-; SSE-NEXT: minss %xmm3, %xmm0
; SSE-NEXT: retq
;
; AVX-LABEL: reassociate_mins_single:
; AVX: # BB#0:
; AVX-NEXT: vdivss %xmm1, %xmm0, %xmm0
-; AVX-NEXT: vminss %xmm0, %xmm2, %xmm0
-; AVX-NEXT: vminss %xmm0, %xmm3, %xmm0
+; AVX-NEXT: vminss %xmm3, %xmm2, %xmm1
+; AVX-NEXT: vminss %xmm1, %xmm0, %xmm0
; AVX-NEXT: retq
%t0 = fdiv float %x0, %x1
%cmp1 = fcmp olt float %x2, %t0
OpenPOWER on IntegriCloud