Skip to content

Commit cac0b36

Browse files
committed
Fix test in 75bd889 to handle non-x86 platforms.
1 parent 8ef5f40 commit cac0b36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/SILGen/default_constructor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ struct D {
1919
// CHECK-NEXT: [[METATYPE:%.*]] = metatype $@thin Int.Type
2020
// CHECK-NEXT: [[VALUE:%.*]] = integer_literal $Builtin.Int2048, 2
2121
// CHECK-NEXT: [[LEFT:%.*]] = apply [[FN]]([[VALUE]], [[METATYPE]]) : $@convention(method) (Builtin.Int2048, @thin Int.Type) -> Int
22-
// CHECK: [[FN:%.*]] = function_ref @_TFSdCfT20_builtinFloatLiteralBf80__Sd : $@convention(method) (Builtin.FPIEEE80, @thin Double.Type) -> Double
22+
// CHECK: [[FN:%.*]] = function_ref @_TFSdCfT20_builtinFloatLiteralBf{{64|80}}__Sd : $@convention(method) (Builtin.FPIEEE{{64|80}}, @thin Double.Type) -> Double
2323
// CHECK-NEXT: [[METATYPE:%.*]] = metatype $@thin Double.Type
24-
// CHECK-NEXT: [[VALUE:%.*]] = float_literal $Builtin.FPIEEE80, 0x4000E000000000000000
25-
// CHECK-NEXT: [[RIGHT:%.*]] = apply [[FN]]([[VALUE]], [[METATYPE]]) : $@convention(method) (Builtin.FPIEEE80, @thin Double.Type) -> Double
24+
// CHECK-NEXT: [[VALUE:%.*]] = float_literal $Builtin.FPIEEE{{64|80}}, {{0x400C000000000000|0x4000E000000000000000}}
25+
// CHECK-NEXT: [[RIGHT:%.*]] = apply [[FN]]([[VALUE]], [[METATYPE]]) : $@convention(method) (Builtin.FPIEEE{{64|80}}, @thin Double.Type) -> Double
2626
// CHECK-NEXT: [[RESULT:%.*]] = tuple ([[LEFT]] : $Int, [[RIGHT]] : $Double)
2727
// CHECK-NEXT: return [[RESULT]] : $(Int, Double)
2828

0 commit comments

Comments
 (0)