Skip to content

Commit 5a271b7

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents c9ecad1 + 09097df commit 5a271b7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/SILOptimizer/constant_evaluator_test.sil

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,8 @@ enum IntFormat {
794794
}
795795

796796
// getIntegerFormatSpecifier(IntFormat:isPrivate:bitWidth:isSigned:)
797-
sil @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String {
798-
bb0(%0 : $IntFormat, %1 : $Bool, %2 : $Int, %3 : $Bool):
797+
sil @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String {
798+
bb0(%0 : $IntFormat, %1 : $Bool, %2 : $Int64, %3 : $Bool):
799799
%10 = alloc_stack $String, var, name "formatSpecifier"
800800
%11 = struct_extract %1 : $Bool, #Bool._value
801801
cond_br %11, bb1, bb2
@@ -821,7 +821,7 @@ bb2:
821821
bb3(%27 : $String):
822822
store %27 to %10 : $*String
823823
%29 = integer_literal $Builtin.Int64, 64
824-
%30 = struct_extract %2 : $Int, #Int._value
824+
%30 = struct_extract %2 : $Int64, #Int64._value
825825
%31 = builtin "cmp_eq_Int64"(%30 : $Builtin.Int64, %29 : $Builtin.Int64) : $Builtin.Int1
826826
%32 = struct $Bool (%31 : $Builtin.Int1)
827827
%33 = struct_extract %32 : $Bool, #Bool._value
@@ -927,11 +927,11 @@ bb0:
927927
%4 = integer_literal $Builtin.Int1, -1
928928
%5 = struct $Bool (%4 : $Builtin.Int1)
929929
%6 = integer_literal $Builtin.Int64, 64
930-
%7 = struct $Int (%6 : $Builtin.Int64)
930+
%7 = struct $Int64 (%6 : $Builtin.Int64)
931931
%8 = integer_literal $Builtin.Int1, -1
932932
%9 = struct $Bool (%8 : $Builtin.Int1)
933-
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
934-
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
933+
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
934+
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
935935
return %11 : $String
936936
} // CHECK: Returns string: "%{private}lld"
937937

@@ -943,11 +943,11 @@ bb0:
943943
%4 = integer_literal $Builtin.Int1, -1
944944
%5 = struct $Bool (%4 : $Builtin.Int1)
945945
%6 = integer_literal $Builtin.Int64, 64
946-
%7 = struct $Int (%6 : $Builtin.Int64)
946+
%7 = struct $Int64 (%6 : $Builtin.Int64)
947947
%8 = integer_literal $Builtin.Int1, -1
948948
%9 = struct $Bool (%8 : $Builtin.Int1)
949-
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
950-
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
949+
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
950+
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
951951
return %11 : $String
952952
} // CHECK: Returns string: "%{private}llx"
953953

@@ -959,11 +959,11 @@ bb0:
959959
%4 = integer_literal $Builtin.Int1, 0
960960
%5 = struct $Bool (%4 : $Builtin.Int1)
961961
%6 = integer_literal $Builtin.Int64, 32
962-
%7 = struct $Int (%6 : $Builtin.Int64)
962+
%7 = struct $Int64 (%6 : $Builtin.Int64)
963963
%8 = integer_literal $Builtin.Int1, -1
964964
%9 = struct $Bool (%8 : $Builtin.Int1)
965-
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
966-
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
965+
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
966+
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
967967
return %11 : $String
968968
} // CHECK: Returns string: "%{public}o"
969969

@@ -975,10 +975,10 @@ bb0:
975975
%4 = integer_literal $Builtin.Int1, 0
976976
%5 = struct $Bool (%4 : $Builtin.Int1)
977977
%6 = integer_literal $Builtin.Int64, 64
978-
%7 = struct $Int (%6 : $Builtin.Int64)
978+
%7 = struct $Int64 (%6 : $Builtin.Int64)
979979
%8 = integer_literal $Builtin.Int1, 0
980980
%9 = struct $Bool (%8 : $Builtin.Int1)
981-
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
982-
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int, Bool) -> @owned String
981+
%10 = function_ref @getIntegerFormatSpecifier : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
982+
%11 = apply %10(%3, %5, %7, %9) : $@convention(thin) (IntFormat, Bool, Int64, Bool) -> @owned String
983983
return %11 : $String
984984
} // CHECK: Returns string: "%{public}llu"

0 commit comments

Comments
 (0)