]> granicus.if.org Git - clang/commitdiff
test/CodeGen/builtins.c: reinstate #ifdef __x86_64__ around __builtin_longjmp
authorMehdi Amini <mehdi.amini@apple.com>
Mon, 24 Oct 2016 23:38:24 +0000 (23:38 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Mon, 24 Oct 2016 23:38:24 +0000 (23:38 +0000)
Unadvertently removed in r285019

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285041 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/builtins.c

index 9ff375b47dda9183e0635997d545d846ab087430..777019847569803a74c8ae4b25824c321d311ca2 100644 (file)
@@ -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
 void test_builtin_longjmp(void **buffer) {
   // CHECK: [[BITCAST:%.*]] = bitcast
@@ -363,6 +366,8 @@ void test_builtin_longjmp(void **buffer) {
   // CHECK-NEXT: unreachable
 }
 
+#endif
+
 // CHECK-LABEL: define i64 @test_builtin_readcyclecounter
 long long test_builtin_readcyclecounter() {
   // CHECK: call i64 @llvm.readcyclecounter()