r285041 - test/CodeGen/builtins.c: reinstate #ifdef __x86_64__ around __builtin_longjmp
Mehdi Amini via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 24 16:38:24 PDT 2016
Author: mehdi_amini
Date: Mon Oct 24 18:38:24 2016
New Revision: 285041
URL: http://llvm.org/viewvc/llvm-project?rev=285041&view=rev
Log:
test/CodeGen/builtins.c: reinstate #ifdef __x86_64__ around __builtin_longjmp
Unadvertently removed in r285019
Modified:
cfe/trunk/test/CodeGen/builtins.c
Modified: cfe/trunk/test/CodeGen/builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/builtins.c?rev=285041&r1=285040&r2=285041&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/builtins.c (original)
+++ cfe/trunk/test/CodeGen/builtins.c Mon Oct 24 18:38:24 2016
@@ -355,6 +355,9 @@ void test_float_builtin_ops(float F, dou
}
+// __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()
More information about the cfe-commits
mailing list