1 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +fsgsbase -emit-llvm -o - | FileCheck %s
6 unsigned int test_readfsbase_u32(void)
8 // CHECK: @llvm.x86.rdfsbase.32
9 return _readfsbase_u32();
12 unsigned long long test_readfsbase_u64(void)
14 // CHECK: @llvm.x86.rdfsbase.64
15 return _readfsbase_u64();
18 unsigned int test_readgsbase_u32(void)
20 // CHECK: @llvm.x86.rdgsbase.32
21 return _readgsbase_u32();
24 unsigned long long test_readgsbase_u64(void)
26 // CHECK: @llvm.x86.rdgsbase.64
27 return _readgsbase_u64();
30 void test_writefsbase_u32(unsigned int __X
)
32 // CHECK: @llvm.x86.wrfsbase.32
33 _writefsbase_u32(__X
);
36 void test_writefsbase_u64(unsigned long long __X
)
38 // CHECK: @llvm.x86.wrfsbase.64
39 _writefsbase_u64(__X
);
42 void test_writegsbase_u32(unsigned int __X
)
44 // CHECK: @llvm.x86.wrgsbase.32
45 _writegsbase_u32(__X
);
48 void test_writegsbase_u64(unsigned long long __X
)
50 // CHECK: @llvm.x86.wrgsbase.64
51 _writegsbase_u64(__X
);