File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
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
+ // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -import-objc-header %S/Inputs/c_functions.h -primary-file %s -emit-ir | %FileCheck %s --check-prefix=%target-cpu
4
4
5
5
// This is deliberately not a SIL test so that we can test SILGen too.
6
6
@@ -24,3 +24,11 @@ func test_indirect_by_val_alignment() {
24
24
// x86_64: [[CAST:%.*]] = bitcast %TSC7a_thingV* %indirect-temporary to %struct.a_thing*
25
25
// x86_64: call void @log_a_thing(%struct.a_thing* byval align [[ALIGN]] [[CAST]])
26
26
// x86_64: define internal void @log_a_thing(%struct.a_thing* byval align [[ALIGN]]
27
+
28
+
29
+ // We only want to test x86_64.
30
+ // arm64: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
31
+ // armv7k: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
32
+ // armv7s: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
33
+ // armv7: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
34
+ // i386: define hidden swiftcc void @_T011c_functions30test_indirect_by_val_alignmentyyF()
You can’t perform that action at this time.
0 commit comments