OSDN Git Service

[SimplifyCFG] Try and pacify buildbots after r277325
authorJames Molloy <james.molloy@arm.com>
Mon, 1 Aug 2016 08:09:55 +0000 (08:09 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 1 Aug 2016 08:09:55 +0000 (08:09 +0000)
It looks like the two independent parts of the rotate operation (a lshr and shl) are being reordered on some bots. Add CHECK-DAGs to account for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277329 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/rangereduce.ll

index eee67b4..d1a745e 100644 (file)
@@ -4,8 +4,8 @@ target datalayout = "e-n32"
 
 ; CHECK-LABEL: @test1
 ; CHECK: %1 = sub i32 %a, 97
-; CHECK: %2 = lshr i32 %1, 2
-; CHECK: %3 = shl i32 %1, 30
+; CHECK-DAG: %2 = lshr i32 %1, 2
+; CHECK-DAG: %3 = shl i32 %1, 30
 ; CHECK: %4 = or i32 %2, %3
 ; CHECK:  switch i32 %4, label %def [
 ; CHECK:    i32 0, label %one
@@ -121,8 +121,8 @@ three:
 
 ; CHECK-LABEL: @test6
 ; CHECK: %1 = sub i32 %a, -109
-; CHECK: %2 = lshr i32 %1, 2
-; CHECK: %3 = shl i32 %1, 30
+; CHECK-DAG: %2 = lshr i32 %1, 2
+; CHECK-DAG: %3 = shl i32 %1, 30
 ; CHECK: %4 = or i32 %2, %3
 ; CHECK:  switch i32 %4, label %def [
 define i32 @test6(i32 %a) optsize {
@@ -146,8 +146,8 @@ three:
 
 ; CHECK-LABEL: @test7
 ; CHECK: %1 = sub i8 %a, -36
-; CHECK: %2 = lshr i8 %1, 2
-; CHECK: %3 = shl i8 %1, 6
+; CHECK-DAG: %2 = lshr i8 %1, 2
+; CHECK-DAG: %3 = shl i8 %1, 6
 ; CHECK: %4 = or i8 %2, %3
 ; CHECK:  switch.tableidx = {{.*}} %4
 define i8 @test7(i8 %a) optsize {
@@ -171,8 +171,8 @@ three:
 
 ; CHECK-LABEL: @test8
 ; CHECK: %1 = sub i32 %a, 97
-; CHECK: %2 = lshr i32 %1, 2
-; CHECK: %3 = shl i32 %1, 30
+; CHECK-DAG: %2 = lshr i32 %1, 2
+; CHECK-DAG: %3 = shl i32 %1, 30
 ; CHECK: %4 = or i32 %2, %3
 ; CHECK:  switch i32 %4, label %def [
 define i32 @test8(i32 %a) optsize {