File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -import-objc-header %S/Inputs/c_functions.h -primary-file %s -emit-ir | %FileCheck %s
3
+ // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -target x86_64-apple-macosx10.11 -import-objc-header %S/Inputs/c_functions.h -primary-file %s -emit-ir | %FileCheck %s --check-prefix=x86_64
3
4
4
5
// This is deliberately not a SIL test so that we can test SILGen too.
5
6
@@ -18,8 +19,8 @@ func test_indirect_by_val_alignment() {
18
19
log_a_thing ( x)
19
20
}
20
21
21
- // CHECK -LABEL: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
22
- // CHECK : %indirect-temporary = alloca %TSC7a_thingV, align [[ALIGN:[0-9]+]]
23
- // CHECK : [[CAST:%.*]] = bitcast %TSC7a_thingV* %indirect-temporary to %struct.a_thing*
24
- // CHECK : call void @log_a_thing(%struct.a_thing* byval align [[ALIGN]] [[CAST]])
25
- // CHECK : define internal void @log_a_thing(%struct.a_thing* byval align [[ALIGN]]
22
+ // x86_64 -LABEL: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
23
+ // x86_64 : %indirect-temporary = alloca %TSC7a_thingV, align [[ALIGN:[0-9]+]]
24
+ // x86_64 : [[CAST:%.*]] = bitcast %TSC7a_thingV* %indirect-temporary to %struct.a_thing*
25
+ // x86_64 : call void @log_a_thing(%struct.a_thing* byval align [[ALIGN]] [[CAST]])
26
+ // x86_64 : define internal void @log_a_thing(%struct.a_thing* byval align [[ALIGN]]
You can’t perform that action at this time.
0 commit comments