diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-03-04 19:24:16 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-03-04 19:24:16 +0000 |
commit | 533bd17268a7eb5454fd6865ca4ad488b0a35982 (patch) | |
tree | 107546a2202c2950b16046b7b19f26c17aa9171f /clang/test/CodeGen/builtins.c | |
parent | 265ffbeb0c78ae49871571af2d4382f5a52c27e6 (diff) | |
download | bcm5719-llvm-533bd17268a7eb5454fd6865ca4ad488b0a35982.tar.gz bcm5719-llvm-533bd17268a7eb5454fd6865ca4ad488b0a35982.zip |
Fix test/CodeGen/builtins.c for platforms that don't lower sjlj
Opt in Win64 to supporting sjlj lowering. We have the backend lowering,
so I think this was just an oversight because WinX86_64TargetCodeGenInfo
doesn't inherit from X86_64TargetCodeGenInfo.
llvm-svn: 231280
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 1ab29a659b3..bf7874b0886 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/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() { |