@@ -527,10 +527,10 @@ func test18_2() -> Bool {
527
527
528
528
529
529
// CHECK-LABEL: sil hidden [noinline] @$s12cast_folding6test19SbyF : $@convention(thin) () -> Bool
530
- // CHECK: bb0
531
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, -1
532
- // CHECK-NEXT: %1 = struct $Bool
533
- // CHECK-NEXT: return %1
530
+ // CHECK: [[I1:%.*]] = integer_literal $Builtin.Int1, -1
531
+ // CHECK: [[B:%.*]] = struct $Bool ([[I1]]
532
+ // CHECK: return [[B]]
533
+ // CHECK: } // end sil function '$s12cast_folding6test19SbyF'
534
534
@inline ( never)
535
535
func test19( ) -> Bool {
536
536
let t : Any . Type = type ( of: 1 as Any )
@@ -595,10 +595,10 @@ func test22_2() -> Bool {
595
595
}
596
596
597
597
// CHECK-LABEL: sil hidden [noinline] @$s12cast_folding6test23SbyF : $@convention(thin) () -> Bool
598
- // CHECK: bb0
599
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, 0
600
- // CHECK-NEXT: %1 = struct $Bool
601
- // CHECK-NEXT: return %1
598
+ // CHECK: [[I0:%.*]] = integer_literal $Builtin.Int1, 0
599
+ // CHECK: [[B:%.*]] = struct $Bool ([[I0]]
600
+ // CHECK: return [[B]]
601
+ // CHECK: } // end sil function '$s12cast_folding6test23SbyF'
602
602
@inline ( never)
603
603
func test23( ) -> Bool {
604
604
return cast23 ( P . self)
@@ -626,10 +626,10 @@ func test24_2() -> Bool {
626
626
627
627
628
628
// CHECK-LABEL: sil hidden [noinline] @$s12cast_folding6test25SbyF : $@convention(thin) () -> Bool
629
- // CHECK: bb0
630
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, 0
631
- // CHECK-NEXT: %1 = struct $Bool
632
- // CHECK-NEXT: return %1
629
+ // CHECK: [[I0:%.*]] = integer_literal $Builtin.Int1, 0
630
+ // CHECK: [[B:%.*]] = struct $Bool ([[I0]]
631
+ // CHECK: return [[B]]
632
+ // CHECK: } // end sil function '$s12cast_folding6test25SbyF'
633
633
@inline ( never)
634
634
func test25( ) -> Bool {
635
635
return cast25 ( P . self)
@@ -647,10 +647,10 @@ func test26() -> Bool {
647
647
648
648
649
649
// CHECK-LABEL: sil hidden [noinline] @$s12cast_folding6test27SbyF
650
- // CHECK: bb0
651
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, 0
652
- // CHECK-NEXT: %1 = struct $Bool
653
- // CHECK-NEXT: return %1
650
+ // CHECK: [[I0:%.*]] = integer_literal $Builtin.Int1, 0
651
+ // CHECK: [[B:%.*]] = struct $Bool ([[I0]]
652
+ // CHECK: return [[B]]
653
+ // CHECK: } // end sil function '$s12cast_folding6test27SbyF'
654
654
@inline ( never)
655
655
func test27( ) -> Bool {
656
656
return cast27 ( D . self)
@@ -955,61 +955,61 @@ public func test42(_ p: P) -> Bool {
955
955
return cast42 ( p)
956
956
}
957
957
958
- // CHECK-LABEL: sil [noinline] @{{.*}}test43{{.*}}
959
- // CHECK: bb0
960
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, -1
961
- // CHECK-NEXT: %1 = struct $Bool
962
- // CHECK-NEXT: return %1
958
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding6test43SbyF
959
+ // CHECK: [[I1:%.*]] = integer_literal $Builtin.Int1, -1
960
+ // CHECK: [[B:%.*]] = struct $Bool ([[I1]]
961
+ // CHECK: return [[B]]
962
+ // CHECK: } // end sil function '$s12cast_folding6test43SbyF'
963
963
@inline ( never)
964
964
public func test43( ) -> Bool {
965
965
return P . self is Any . Type
966
966
}
967
967
968
- // CHECK-LABEL: sil [noinline] @{{.*}}test44{{.*}}
969
- // CHECK: bb0
970
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, -1
971
- // CHECK-NEXT: %1 = struct $Bool
972
- // CHECK-NEXT: return %1
968
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding6test44SbyF
969
+ // CHECK: [[I1:%.*]] = integer_literal $Builtin.Int1, -1
970
+ // CHECK: [[B:%.*]] = struct $Bool ([[I1]]
971
+ // CHECK: return [[B]]
972
+ // CHECK: } // end sil function '$s12cast_folding6test44SbyF'
973
973
@inline ( never)
974
974
public func test44( ) -> Bool {
975
975
return Any . self is Any . Type
976
976
}
977
977
978
- // CHECK-LABEL: sil [noinline] @{{.*}}test45{{.*}}
979
- // CHECK: bb0
980
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, -1
981
- // CHECK-NEXT: %1 = struct $Bool
982
- // CHECK-NEXT: return %1
978
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding6test45SbyF
979
+ // CHECK: [[I1:%.*]] = integer_literal $Builtin.Int1, -1
980
+ // CHECK: [[B:%.*]] = struct $Bool ([[I1]]
981
+ // CHECK: return [[B]]
982
+ // CHECK: } // end sil function '$s12cast_folding6test45SbyF'
983
983
@inline ( never)
984
984
public func test45( ) -> Bool {
985
985
return ( P & R) . self is Any . Type
986
986
}
987
987
988
- // CHECK-LABEL: sil [noinline] @{{.*}}test46{{.*}}
989
- // CHECK: bb0
990
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, -1
991
- // CHECK-NEXT: %1 = struct $Bool
992
- // CHECK-NEXT: return %1
988
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding6test46SbyF
989
+ // CHECK: [[I1:%.*]] = integer_literal $Builtin.Int1, -1
990
+ // CHECK: [[B:%.*]] = struct $Bool ([[I1]]
991
+ // CHECK: return [[B]]
992
+ // CHECK: } // end sil function '$s12cast_folding6test46SbyF'
993
993
@inline ( never)
994
994
public func test46( ) -> Bool {
995
995
return AnyObject . self is Any . Type
996
996
}
997
997
998
- // CHECK-LABEL: sil [noinline] @{{.*}}test47{{.*}}
999
- // CHECK: bb0
1000
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, -1
1001
- // CHECK-NEXT: %1 = struct $Bool
1002
- // CHECK-NEXT: return %1
998
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding6test47SbyF
999
+ // CHECK: [[I1:%.*]] = integer_literal $Builtin.Int1, -1
1000
+ // CHECK: [[B:%.*]] = struct $Bool ([[I1]]
1001
+ // CHECK: return [[B]]
1002
+ // CHECK: } // end sil function '$s12cast_folding6test47SbyF'
1003
1003
@inline ( never)
1004
1004
public func test47( ) -> Bool {
1005
1005
return Any . Type. self is Any . Type
1006
1006
}
1007
1007
1008
- // CHECK-LABEL: sil [noinline] @{{.*}}test48{{.*}}
1009
- // CHECK: bb0
1010
- // CHECK-NEXT: %0 = integer_literal $Builtin.Int1, 0
1011
- // CHECK-NEXT: %1 = struct $Bool
1012
- // CHECK-NEXT: return %1
1008
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding6test48SbyF
1009
+ // CHECK: [[I0:%.*]] = integer_literal $Builtin.Int1, 0
1010
+ // CHECK: [[B:%.*]] = struct $Bool ([[I0]]
1011
+ // CHECK: return [[B]]
1012
+ // CHECK: } // end sil function '$s12cast_folding6test48SbyF'
1013
1013
@inline ( never)
1014
1014
public func test48( ) -> Bool {
1015
1015
return Any . Type. self is Any . Type . Type
@@ -1027,10 +1027,10 @@ public func testCastAnyObjectProtocolToAnyObjectType() -> AnyObject.Type? {
1027
1027
return cast ( AnyObject . self)
1028
1028
}
1029
1029
1030
- // CHECK-LABEL: // testCastProtocolTypeProtocolToProtocolTypeType
1031
- // CHECK: sil [noinline] @ {{.*}}testCastProtocol{{.*}}$@convention(thin) () -> Optional<@thick any P.Type.Type>
1032
- // CHECK: %0 = enum $Optional{{.*}}, #Optional.none!enumelt
1033
- // CHECK-NEXT: return %0
1030
+ // CHECK-LABEL: sil [noinline] @$s12cast_folding020testCastProtocolTypee2ToefF0AA1P_pXpXpSgyF :
1031
+ // CHECK: [[E:%.*]] = enum $Optional {{.*}}, # Optional.none!enumelt
1032
+ // CHECK: return [[E]]
1033
+ // CHECK: } // end sil function '$s12cast_folding020testCastProtocolTypee2ToefF0AA1P_pXpXpSgyF'
1034
1034
@inline ( never)
1035
1035
public func testCastProtocolTypeProtocolToProtocolTypeType( ) -> P . Type . Type ? {
1036
1036
return P . Type. self as? P . Type . Type
0 commit comments