Skip to content

Commit 7362ff2

Browse files
committed
[test] Verify that x86_64 targets have the cx16 feature on every platform
1 parent e767873 commit 7362ff2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/IRGen/cx16.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-frontend -target x86_64-unknown-linux-gnu -parse-stdlib -disable-objc-interop %s -module-name main -emit-ir -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend -target x86_64-unknown-windows-msvc -parse-stdlib -disable-objc-interop %s -module-name main -emit-ir -o - | %FileCheck %s
3+
// RUN: %target-swift-frontend -target x86_64-unknown-freebsd -parse-stdlib -disable-objc-interop %s -module-name main -emit-ir -o - | %FileCheck %s
4+
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.9 -parse-stdlib -module-name main %s -emit-ir -o - | %FileCheck %s
5+
6+
// REQUIRES: CODEGENERATOR=X86
7+
8+
public func test() {
9+
}
10+
11+
// We expect double-wide atomic intrinsics to always be available on x86_64.
12+
// CHECK: "target-features"="{{.*}}+cx16,

0 commit comments

Comments
 (0)