forked from OSchip/llvm-project
CodeGen: replace use of @llvm.arm.sevl with @llvm.arm.hint
Use the new generic @llvm.arm.hint hint intrinsic rather than the specialised @llvm.arm.sevl hint instruction. llvm-svn: 207243
This commit is contained in:
parent
7e7c2f9ca6
commit
0fd930e86c
|
@ -4423,8 +4423,8 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BuiltinID == ARM::BI__builtin_arm_sevl) {
|
if (BuiltinID == ARM::BI__builtin_arm_sevl) {
|
||||||
Function *F = CGM.getIntrinsic(Intrinsic::arm_sevl);
|
Function *F = CGM.getIntrinsic(Intrinsic::arm_hint);
|
||||||
return Builder.CreateCall(F);
|
return Builder.CreateCall(F, llvm::ConstantInt::get(Int32Ty, 5));
|
||||||
}
|
}
|
||||||
|
|
||||||
// CRC32
|
// CRC32
|
||||||
|
|
|
@ -22,7 +22,7 @@ void test_eh_return_data_regno()
|
||||||
void sevl() {
|
void sevl() {
|
||||||
__builtin_arm_sevl();
|
__builtin_arm_sevl();
|
||||||
}
|
}
|
||||||
// CHECK: call {{.*}} @llvm.arm.sevl
|
// CHECK: call {{.*}} @llvm.arm.hint(i32 5)
|
||||||
|
|
||||||
void test_barrier() {
|
void test_barrier() {
|
||||||
__builtin_arm_dmb(1); //CHECK: call {{.*}} @llvm.arm.dmb(i32 1)
|
__builtin_arm_dmb(1); //CHECK: call {{.*}} @llvm.arm.dmb(i32 1)
|
||||||
|
|
Loading…
Reference in New Issue