forked from OSchip/llvm-project
test/CodeGen/builtins.c: reinstate #ifdef __x86_64__ around __builtin_longjmp
Unadvertently removed in r285019 llvm-svn: 285041
This commit is contained in:
parent
3acb187d95
commit
ebff247d41
|
@ -355,6 +355,9 @@ void test_float_builtin_ops(float F, double D, long double LD) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// __builtin_longjmp isn't supported on all platforms, so only test it on X86.
|
||||||
|
#ifdef __x86_64__
|
||||||
|
|
||||||
// CHECK-LABEL: define void @test_builtin_longjmp
|
// CHECK-LABEL: define void @test_builtin_longjmp
|
||||||
void test_builtin_longjmp(void **buffer) {
|
void test_builtin_longjmp(void **buffer) {
|
||||||
// CHECK: [[BITCAST:%.*]] = bitcast
|
// CHECK: [[BITCAST:%.*]] = bitcast
|
||||||
|
@ -363,6 +366,8 @@ void test_builtin_longjmp(void **buffer) {
|
||||||
// CHECK-NEXT: unreachable
|
// CHECK-NEXT: unreachable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
// CHECK-LABEL: define i64 @test_builtin_readcyclecounter
|
// CHECK-LABEL: define i64 @test_builtin_readcyclecounter
|
||||||
long long test_builtin_readcyclecounter() {
|
long long test_builtin_readcyclecounter() {
|
||||||
// CHECK: call i64 @llvm.readcyclecounter()
|
// CHECK: call i64 @llvm.readcyclecounter()
|
||||||
|
|
Loading…
Reference in New Issue