summaryrefslogtreecommitdiff
path: root/test/profile
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-08-01 23:20:30 +0000
committerXinliang David Li <davidxl@google.com>2016-08-01 23:20:30 +0000
commitda505b5c8b6c2b73457ee65ba8fb531d8be08ff0 (patch)
tree29a4e2810c58e2dd8ddbd2bd10af4d905bc72b7a /test/profile
parentd7ee6f44ee83527890f81f50fd407c891905377e (diff)
improve test cases to fix bot failure
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@277403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile')
-rw-r--r--test/profile/Inputs/comdat_rename_1.cc6
-rw-r--r--test/profile/Inputs/comdat_rename_2.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/profile/Inputs/comdat_rename_1.cc b/test/profile/Inputs/comdat_rename_1.cc
index 907b964fc..688e30531 100644
--- a/test/profile/Inputs/comdat_rename_1.cc
+++ b/test/profile/Inputs/comdat_rename_1.cc
@@ -7,7 +7,7 @@ int FOO::callee() {
// CHECK-LABEL: define {{.*}}callee{{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label{{.*}}, label %[[BB1:.*]], !prof ![[PD1:[0-9]+]]
- // CHECK: ; <label>:[[BB1]]:
+ // CHECK: {{.*}}[[BB1]]:
if (b != 0)
return a / b;
if (a != 0)
@@ -21,10 +21,10 @@ int FOO::callee() {
// CHECK-LABEL: define {{.*}}caller{{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label{{.*}}, label %[[BB2:.*]], !prof ![[PD2:[0-9]+]]
-// CHECK: ; <label>:[[BB2]]:
+// CHECK: {{.*}}[[BB2]]:
// CHECK: br {{.*}}label{{.*}}, label %{{.*}}, !prof !{{.*}}
// CHECK: br {{.*}}label %[[BB3:.*]], label %{{.*}} !prof ![[PD3:[0-9]+]]
-// CHECK: ; <label>:[[BB3]]:
+// CHECK: {{.*}}[[BB3]]:
//
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}
// CHECK:![[PD2]] = !{!"branch_weights", i32 1, i32 0}
diff --git a/test/profile/Inputs/comdat_rename_2.cc b/test/profile/Inputs/comdat_rename_2.cc
index 6ba92ce39..5cad79c9f 100644
--- a/test/profile/Inputs/comdat_rename_2.cc
+++ b/test/profile/Inputs/comdat_rename_2.cc
@@ -14,5 +14,5 @@ int main() {
// CHECK: {{.*}} call {{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label %[[BB1:.*]], label{{.*}}!prof ![[PD1:[0-9]+]]
-// CHECK: ; <label>:[[BB1]]:
+// CHECK: {{.*}}[[BB1]]:
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}