summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Hexagon/sdiv-minsigned.ll14
-rw-r--r--llvm/test/CodeGen/X86/combine-sdiv.ll25
2 files changed, 6 insertions, 33 deletions
diff --git a/llvm/test/CodeGen/Hexagon/sdiv-minsigned.ll b/llvm/test/CodeGen/Hexagon/sdiv-minsigned.ll
deleted file mode 100644
index 06b4dc1ceda..00000000000
--- a/llvm/test/CodeGen/Hexagon/sdiv-minsigned.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: llc -march=hexagon < %s | FileCheck %s
-; REQUIRES: asserts
-
-; This checks for a bug in the DAG combiner where a SETCC was created with
-; an illegal return type. Make sure it compiles successfully.
-; CHECK: r0 = cmp.eq(r0,##-2147483648)
-
-define i32 @f0(i32 %a0) #0 {
-entry:
- %v0 = sdiv i32 %a0, -2147483648
- ret i32 %v0
-}
-
-attributes #0 = { noinline nounwind "target-cpu"="hexagonv60" }
diff --git a/llvm/test/CodeGen/X86/combine-sdiv.ll b/llvm/test/CodeGen/X86/combine-sdiv.ll
index 5d2547b3b47..f9939ddfeff 100644
--- a/llvm/test/CodeGen/X86/combine-sdiv.ll
+++ b/llvm/test/CodeGen/X86/combine-sdiv.ll
@@ -77,25 +77,12 @@ define <4 x i32> @combine_vec_sdiv_by_minsigned(<4 x i32> %x) {
; AVX1-NEXT: vpsrld $31, %xmm0, %xmm0
; AVX1-NEXT: retq
;
-; AVX2-LABEL: combine_vec_sdiv_by_minsigned:
-; AVX2: # %bb.0:
-; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm1 = [2147483648,2147483648,2147483648,2147483648]
-; AVX2-NEXT: vpcmpeqd %xmm1, %xmm0, %xmm0
-; AVX2-NEXT: vpsrld $31, %xmm0, %xmm0
-; AVX2-NEXT: retq
-;
-; AVX512F-LABEL: combine_vec_sdiv_by_minsigned:
-; AVX512F: # %bb.0:
-; AVX512F-NEXT: vpbroadcastd {{.*#+}} xmm1 = [2147483648,2147483648,2147483648,2147483648]
-; AVX512F-NEXT: vpcmpeqd %xmm1, %xmm0, %xmm0
-; AVX512F-NEXT: vpsrld $31, %xmm0, %xmm0
-; AVX512F-NEXT: retq
-;
-; AVX512BW-LABEL: combine_vec_sdiv_by_minsigned:
-; AVX512BW: # %bb.0:
-; AVX512BW-NEXT: vpcmpeqd {{.*}}(%rip){1to4}, %xmm0, %k1
-; AVX512BW-NEXT: vpbroadcastd {{.*}}(%rip), %xmm0 {%k1} {z}
-; AVX512BW-NEXT: retq
+; AVX2ORLATER-LABEL: combine_vec_sdiv_by_minsigned:
+; AVX2ORLATER: # %bb.0:
+; AVX2ORLATER-NEXT: vpbroadcastd {{.*#+}} xmm1 = [2147483648,2147483648,2147483648,2147483648]
+; AVX2ORLATER-NEXT: vpcmpeqd %xmm1, %xmm0, %xmm0
+; AVX2ORLATER-NEXT: vpsrld $31, %xmm0, %xmm0
+; AVX2ORLATER-NEXT: retq
;
; XOP-LABEL: combine_vec_sdiv_by_minsigned:
; XOP: # %bb.0:
OpenPOWER on IntegriCloud