Skip to content

Commit 172d566

Browse files
committed
Adjust test/SILOptimizer/simplify_builtin.sil for the fixed expansion of assert_configuration builtin
1 parent 50fa83b commit 172d566

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/SILOptimizer/simplify_builtin.sil

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-sil-opt -enable-sil-verify-all %s -onone-simplification -simplify-instruction=builtin | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-EARLY
22
// RUN: %target-sil-opt -enable-sil-verify-all %s -late-onone-simplification -simplify-instruction=builtin | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-LATE
3-
// RUN: %target-sil-opt -enable-sil-verify-all %s -assert-conf-id=1 -onone-simplification -simplify-instruction=builtin | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOASSERTS
4-
// RUN: %target-sil-opt -enable-sil-verify-all %s -assert-conf-id=2 -onone-simplification -simplify-instruction=builtin | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOASSERTS
3+
// RUN: %target-sil-opt -enable-sil-verify-all %s -assert-conf-id=1 -onone-simplification -simplify-instruction=builtin | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOASSERTS1
4+
// RUN: %target-sil-opt -enable-sil-verify-all %s -assert-conf-id=2 -onone-simplification -simplify-instruction=builtin | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOASSERTS2
55

66
// REQUIRES: swift_in_compiler
77

@@ -417,8 +417,9 @@ bb0:
417417

418418
// CHECK-LABEL: sil @remove_assert_configuration
419419
// CHECK-NOT: builtin "assert_configuration"
420-
// CHECK-EARLY: [[L:%.*]] = integer_literal $Builtin.Int8, 1
421-
// CHECK-NOASSERTS: [[L:%.*]] = integer_literal $Builtin.Int8, 0
420+
// CHECK-EARLY: [[L:%.*]] = integer_literal $Builtin.Int8, 0
421+
// CHECK-NOASSERTS1: [[L:%.*]] = integer_literal $Builtin.Int8, 1
422+
// CHECK-NOASSERTS2: [[L:%.*]] = integer_literal $Builtin.Int8, 2
422423
// CHECK: [[R:%.*]] = struct $Int8 ([[L]] : $Builtin.Int8)
423424
// CHECK: return [[R]]
424425
// CHECK: } // end sil function 'remove_assert_configuration'

0 commit comments

Comments
 (0)