Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGen/builtins-arm-microsoft.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -emit-llvm -o - %s \ // RUN: | FileCheck %s -check-prefix CHECK-MSVC // RUN: %clang_cc1 -Wno-implicit-function-declaration -triple armv7-eabi -emit-llvm %s -o - \ // RUN: | FileCheck %s -check-prefix CHECK-EABI // REQUIRES: arm-registered-target void test_yield_intrinsic() { __yield(); } // CHECK-MSVC: call void @llvm.arm.hint(i32 1) // CHECK-EABI-NOT: call void @llvm.arm.hint(i32 1) void wfe() { __wfe(); } // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 2) // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 2) void wfi() { __wfi(); } // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 3) // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 3) void sev() { __sev(); } // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 4) // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 4) void sevl() { __sevl(); } // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 5) // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 5)