Skip to content

Commit c2417e0

Browse files
committed
Update tests to account for transparent on integral conversions
1 parent ad626f9 commit c2417e0

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

test/Interop/Cxx/templates/function-template-silgen.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ import FunctionTemplates
1616
// CHECK: [[ADD_TWO_FN:%.*]] = function_ref @{{_Z18addMixedTypeParamsIiiET_S0_T0_|\?\?\$addMixedTypeParams@HH@@YAHHH@Z}} : $@convention(c) (Int32, Int32) -> Int32
1717
// CHECK: [[C:%.*]] = apply [[ADD_TWO_FN]]([[A]], [[B]]) : $@convention(c) (Int32, Int32) -> Int32
1818

19-
// CHECK: [[C_32_ADDR:%.*]] = alloc_stack $Int32
20-
// CHECK: [[C_32:%.*]] = load [[C_32_ADDR]] : $*Int32
2119
// CHECK: [[ADD_FN:%.*]] = function_ref @{{_Z17addSameTypeParamsIiET_S0_S0_|\?\?\$addSameTypeParams@H@@YAHHH@Z}} : $@convention(c) (Int32, Int32) -> Int32
22-
// CHECK: [[OUT:%.*]] = apply [[ADD_FN]]([[B]], [[C_32]]) : $@convention(c) (Int32, Int32) -> Int32
20+
// CHECK: [[OUT:%.*]] = apply [[ADD_FN]]([[B]], [[C_32:%.*]]) : $@convention(c) (Int32, Int32) -> Int32
2321
// CHECK: return [[OUT]] : $Int32
2422

2523
// CHECK-LABEL: end sil function '$s4main4test1xs5Int32VAE_tF'

test/SILOptimizer/Inputs/constant_evaluable.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ internal func interpretIntTruncations() -> Int8 {
174174
internal func testInvalidIntTruncations(a: Int32) -> Int8 {
175175
return Int8(a)
176176
// CHECK: note: {{.*}}: Not enough bits to represent the passed value
177-
// CHECK: note: operation performed during this call traps
178-
// CHECK: function_ref @$sSZss17FixedWidthIntegerRzrlEyxqd__cSzRd__lufC
177+
// CHECK: note: operation traps
179178
}
180179

181180
@_semantics("test_driver")
@@ -220,8 +219,7 @@ internal func interpretSingedUnsignedConversions() -> UInt32 {
220219
internal func testInvalidSingedUnsignedConversions(a: Int64) -> UInt64 {
221220
return UInt64(a)
222221
// CHECK: note: {{.*}}: Negative value is not representable
223-
// CHECK: note: operation performed during this call traps
224-
// CHECK: function_ref @$sSUss17FixedWidthIntegerRzrlEyxqd__cSzRd__lufC
222+
// CHECK: note: operation traps
225223
}
226224

227225
@_semantics("test_driver")

test/SILOptimizer/constant_evaluable_subset_test_arch64.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ internal func interpretIntTruncations() -> Int16 {
7171
internal func testInvalidIntTruncations(a: Int64) -> Int8 {
7272
return Int8(a)
7373
// CHECK: note: {{.*}} Not enough bits to represent the passed value
74-
// CHECK: note: operation performed during this call traps
75-
// CHECK: function_ref @$sSZss17FixedWidthIntegerRzrlEyxqd__cSzRd__lufC
74+
// CHECK: note: operation traps
7675
}
7776

7877
@_semantics("test_driver")

0 commit comments

Comments
 (0)