diff options
Diffstat (limited to 'test/CodeGen/builtins.c')
| -rw-r--r-- | test/CodeGen/builtins.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/test/CodeGen/builtins.c b/test/CodeGen/builtins.c index 1ab29a659b31..bf7874b08862 100644 --- a/test/CodeGen/builtins.c +++ b/test/CodeGen/builtins.c @@ -220,6 +220,8 @@ void test_float_builtin_ops(float F, double D, long double LD) {    // CHECK: call x86_fp80 @llvm.fabs.f80(x86_fp80  } +// __builtin_longjmp isn't supported on all platforms, so only test it on X86. +#ifdef __x86_64__  // CHECK-LABEL: define void @test_builtin_longjmp  void test_builtin_longjmp(void **buffer) {    // CHECK: [[BITCAST:%.*]] = bitcast @@ -227,6 +229,7 @@ void test_builtin_longjmp(void **buffer) {    __builtin_longjmp(buffer, 1);    // CHECK-NEXT: unreachable  } +#endif  // CHECK-LABEL: define i64 @test_builtin_readcyclecounter  long long test_builtin_readcyclecounter() { | 
