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:
Saleem Abdulrasool 2014-04-25 17:25:46 +00:00
parent 7e7c2f9ca6
commit 0fd930e86c
2 changed files with 3 additions and 3 deletions

View File

@ -4423,8 +4423,8 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
}
if (BuiltinID == ARM::BI__builtin_arm_sevl) {
Function *F = CGM.getIntrinsic(Intrinsic::arm_sevl);
return Builder.CreateCall(F);
Function *F = CGM.getIntrinsic(Intrinsic::arm_hint);
return Builder.CreateCall(F, llvm::ConstantInt::get(Int32Ty, 5));
}
// CRC32

View File

@ -22,7 +22,7 @@ void test_eh_return_data_regno()
void sevl() {
__builtin_arm_sevl();
}
// CHECK: call {{.*}} @llvm.arm.sevl
// CHECK: call {{.*}} @llvm.arm.hint(i32 5)
void test_barrier() {
__builtin_arm_dmb(1); //CHECK: call {{.*}} @llvm.arm.dmb(i32 1)