Skip to content

Commit c4e2310

Browse files
eecksteinJoe Shajrawi
authored andcommitted
fix a test case for 32-bit targets
1 parent 2c4c865 commit c4e2310

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/SILOptimizer/simplify_cfg_unique_values.sil

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ enum DupCaseEnum {
1010
case secondCase
1111
}
1212

13-
// CHECK-LABEL: sil @performSwitch : $@convention(thin) (Int, @thin DupCaseEnum.Type) -> DupCaseEnum {
14-
// CHECK: bb0(%0 : $Int, %1 : $@thin DupCaseEnum.Type):
13+
// CHECK-LABEL: sil @performSwitch : $@convention(thin) (Int64, @thin DupCaseEnum.Type) -> DupCaseEnum {
14+
// CHECK: bb0(%0 : $Int64, %1 : $@thin DupCaseEnum.Type):
1515
// CHECK: select_value
1616
// CHECK: br bb1
1717
// CHECK: bb1:
1818
// CHECK: return
19-
sil @performSwitch : $@convention(thin) (Int, @thin DupCaseEnum.Type) -> DupCaseEnum {
19+
sil @performSwitch : $@convention(thin) (Int64, @thin DupCaseEnum.Type) -> DupCaseEnum {
2020
// %0 // users: %9, %5, %3, %2
21-
bb0(%0 : $Int, %1 : $@thin DupCaseEnum.Type):
21+
bb0(%0 : $Int64, %1 : $@thin DupCaseEnum.Type):
2222
%4 = integer_literal $Builtin.Int64, 0 // user: %6
23-
%5 = struct_extract %0 : $Int, #Int._value // user: %6
23+
%5 = struct_extract %0 : $Int64, #Int64._value // user: %6
2424
%6 = builtin "cmp_eq_Int64"(%4 : $Builtin.Int64, %5 : $Builtin.Int64) : $Builtin.Int1 // users: %10, %7
2525
cond_br %6, bb6, bb1 // id: %7
2626

@@ -50,16 +50,16 @@ bb7(%18 : $DupCaseEnum): // Preds: bb6 bb5 bb4
5050
return %18 : $DupCaseEnum // id: %19
5151
}
5252

53-
// CHECK-LABEL: sil @performSwitch_bail_out : $@convention(thin) (Int, @thin DupCaseEnum.Type) -> DupCaseEnum {
54-
// CHECK: bb0(%0 : $Int, %1 : $@thin DupCaseEnum.Type):
53+
// CHECK-LABEL: sil @performSwitch_bail_out : $@convention(thin) (Int64, @thin DupCaseEnum.Type) -> DupCaseEnum {
54+
// CHECK: bb0(%0 : $Int64, %1 : $@thin DupCaseEnum.Type):
5555
// CHECK-NOT: select_value
5656
// CHECK-NOT: br bb1
5757
// CHECK: cond_br
58-
sil @performSwitch_bail_out : $@convention(thin) (Int, @thin DupCaseEnum.Type) -> DupCaseEnum {
58+
sil @performSwitch_bail_out : $@convention(thin) (Int64, @thin DupCaseEnum.Type) -> DupCaseEnum {
5959
// %0 // users: %9, %5, %3, %2
60-
bb0(%0 : $Int, %1 : $@thin DupCaseEnum.Type):
60+
bb0(%0 : $Int64, %1 : $@thin DupCaseEnum.Type):
6161
%4 = integer_literal $Builtin.Int64, 0 // user: %6
62-
%5 = struct_extract %0 : $Int, #Int._value // user: %6
62+
%5 = struct_extract %0 : $Int64, #Int64._value // user: %6
6363
%6 = builtin "cmp_eq_Int64"(%4 : $Builtin.Int64, %5 : $Builtin.Int64) : $Builtin.Int1 // users: %10, %7
6464
cond_br %6, bb6, bb1 // id: %7
6565

0 commit comments

Comments
 (0)