summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2019-06-13 05:26:17 +0000
committerShawn Landden <shawn@git.icu>2019-06-13 05:26:17 +0000
commit8b142bcc3f21f279303e28ea2e060acc79a3cbe4 (patch)
tree223dc3f95fcdbf4d4a93d42a4a563d26459114dc /llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll
parent2bf25681509add1d9987ca7dada2fffeb95da4c1 (diff)
downloadbcm5719-llvm-8b142bcc3f21f279303e28ea2e060acc79a3cbe4.tar.gz
bcm5719-llvm-8b142bcc3f21f279303e28ea2e060acc79a3cbe4.zip
[SimplifyCFG] reverting preliminary Switch patches again
This reverts 363226 and 363227, both NFC intended I swear I fixed the test case that is failing, and ran the tests, but I will look into it again. llvm-svn: 363229
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll23
1 files changed, 8 insertions, 15 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll b/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll
index 21cecc5c942..2d46aac23f6 100644
--- a/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll
+++ b/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll
@@ -4,10 +4,10 @@
define i32 @test1(i32 %x) nounwind {
; CHECK-LABEL: @test1(
; CHECK-NEXT: a:
-; CHECK-NEXT: [[I:%.*]] = shl i32 [[X:%.*]], 1
+; CHECK-NEXT: [[I:%.*]] = shl i32 %x, 1
; CHECK-NEXT: [[COND:%.*]] = icmp eq i32 [[I]], 24
-; CHECK-NEXT: [[SPEC_SELECT:%.*]] = select i1 [[COND]], i32 5, i32 0
-; CHECK-NEXT: ret i32 [[SPEC_SELECT]]
+; CHECK-NEXT: [[DOT:%.*]] = select i1 [[COND]], i32 5, i32 0
+; CHECK-NEXT: ret i32 [[DOT]]
;
%i = shl i32 %x, 1
switch i32 %i, label %a [
@@ -48,19 +48,12 @@ c:
define i1 @repeated_signbits(i8 %condition) {
; CHECK-LABEL: @repeated_signbits(
-; CHECK-NEXT: entry:
-; CHECK-NEXT: [[SEXT:%.*]] = sext i8 [[CONDITION:%.*]] to i32
-; CHECK-NEXT: switch i32 [[SEXT]], label [[DEFAULT:%.*]] [
-; CHECK-NEXT: i32 0, label [[A:%.*]]
-; CHECK-NEXT: i32 127, label [[A]]
-; CHECK-NEXT: i32 -128, label [[A]]
-; CHECK-NEXT: i32 -1, label [[A]]
+; CHECK: switch i32
+; CHECK-DAG: i32 -128, label %a
+; CHECK-DAG: i32 -1, label %a
+; CHECK-DAG: i32 0, label %a
+; CHECK-DAG: i32 127, label %a
; CHECK-NEXT: ]
-; CHECK: a:
-; CHECK-NEXT: [[MERGE:%.*]] = phi i1 [ true, [[ENTRY:%.*]] ], [ true, [[ENTRY]] ], [ true, [[ENTRY]] ], [ true, [[ENTRY]] ], [ false, [[DEFAULT]] ]
-; CHECK-NEXT: ret i1 [[MERGE]]
-; CHECK: default:
-; CHECK-NEXT: br label [[A]]
;
entry:
%sext = sext i8 %condition to i32
OpenPOWER on IntegriCloud