forked from OSchip/llvm-project
Fix test on non-X86 platforms
This is a fixup for r285019, adding an `#ifdef __x86_64__` since the os_log builtin is platform specific. llvm-svn: 285027
This commit is contained in:
parent
79d6c63f61
commit
58567d71d0
|
@ -369,6 +369,9 @@ long long test_builtin_readcyclecounter() {
|
|||
return __builtin_readcyclecounter();
|
||||
}
|
||||
|
||||
// Behavior of __builtin_os_log differs between platforms, so only test on X86
|
||||
#ifdef __x86_64__
|
||||
|
||||
// CHECK-LABEL: define void @test_builtin_os_log
|
||||
// CHECK: (i8* [[BUF:%.*]], i32 [[I:%.*]], i8* [[DATA:%.*]])
|
||||
void test_builtin_os_log(void *buf, int i, const char *data) {
|
||||
|
@ -506,3 +509,5 @@ void test_builtin_os_log_percent(void *buf, const char *data) {
|
|||
// CHECK: store i8* [[DATA2]], i8** [[ARG1_PTR]]
|
||||
__builtin_os_log_format(buf, "%s %%", data);
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue