|
1 | 1 | // RUN: %empty-directory(%t) |
2 | 2 | // RUN: %{python} %utils/chex.py < %s > %t/raw_layout.sil |
3 | | -// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %t/raw_layout.sil | %FileCheck %t/raw_layout.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize |
| 3 | +// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -enable-experimental-feature ValueGenerics -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %t/raw_layout.sil | %FileCheck %t/raw_layout.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize |
4 | 4 |
|
5 | 5 | import Builtin |
6 | 6 | import Swift |
@@ -428,7 +428,7 @@ entry(%0 : $*Cell<T>): |
428 | 428 |
|
429 | 429 | // CHECK-LABEL: define {{.*}} void @"$s10raw_layout18ConcreteMoveAsLikeVwxx"(ptr {{.*}} %object, ptr %ConcreteMoveAsLike) |
430 | 430 | // CHECK: [[OBJ_CELL:%.*]] = getelementptr inbounds %T10raw_layout18ConcreteMoveAsLikeV, ptr %object, i32 0, i32 0 |
431 | | -// CHECK: {{invoke void|invoke ptr|call void}} @{{.*}}(ptr [[OBJ_CELL]]) |
| 431 | +// CHECK: {{invoke void|invoke ptr|call void|call ptr}} @{{.*}}(ptr [[OBJ_CELL]]) |
432 | 432 |
|
433 | 433 | //===----------------------------------------------------------------------===// |
434 | 434 | // ConcreteMoveAsLike initializeWithTake |
@@ -555,7 +555,7 @@ entry(%0 : $*Cell<T>): |
555 | 555 | // CHECK: [[NEW_I:%.*]] = add {{i64|i32}} [[I]], 1 |
556 | 556 | // CHECK: store {{i64|i32}} [[NEW_I]], ptr [[I_ALLOCA]] |
557 | 557 | // CHECK: [[OBJECT:%.*]] = getelementptr inbounds %TSo24NonBitwiseTakableCXXTypeV, ptr [[OBJ_VECTOR]], {{i64|i32}} [[I]] |
558 | | -// CHECK-NEXT: {{invoke void|invoke ptr|call void}} @{{.*}}(ptr [[OBJECT]]) |
| 558 | +// CHECK-NEXT: {{invoke void|invoke ptr|call void|call ptr}} @{{.*}}(ptr [[OBJECT]]) |
559 | 559 |
|
560 | 560 | // This may or may not be in the loop_br |
561 | 561 | // CHECK: [[EQ_CMP:%.*]] = icmp eq {{i64|i32}} [[NEW_I]], 2 |
@@ -747,7 +747,7 @@ entry(%0 : $*Cell<T>): |
747 | 747 | // CHECK: [[NEW_I:%.*]] = add {{i64|i32}} [[I]], 1 |
748 | 748 | // CHECK: store {{i64|i32}} [[NEW_I]], ptr [[I_ALLOCA]] |
749 | 749 | // CHECK: [[OBJECT:%.*]] = getelementptr inbounds %TSo24NonBitwiseTakableCXXTypeV, ptr [[OBJ_VECTOR]], {{i64|i32}} [[I]] |
750 | | -// CHECK-NEXT: {{invoke void|invoke ptr|call void}} @{{.*}}(ptr [[OBJECT]]) |
| 750 | +// CHECK-NEXT: {{invoke void|invoke ptr|call void|call ptr}} @{{.*}}(ptr [[OBJECT]]) |
751 | 751 |
|
752 | 752 | // This may or may not be in the loop_br |
753 | 753 | // CHECK: [[EQ_CMP:%.*]] = icmp eq {{i64|i32}} [[NEW_I]], 4 |
|
0 commit comments