mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[PowerPC] Semachecking for XL compat builtin icbt
This patch is in a series of patches to provide builtins for compatibility with the XL compiler. This patch adds semachecking for an already implemented builtin, `__icbt`. `__icbt` is only valid for Power8 and up. Reviewed By: #powerpc, nemanjai Differential Revision: https://reviews.llvm.org/D105834
This commit is contained in:
parent
95c86f6829
commit
b0ba22b69f
@ -1534,7 +1534,6 @@ let TargetPrefix = "ppc" in {
|
||||
[IntrArgMemOnly, NoCapture<ArgIndex<0>>]>;
|
||||
def int_ppc_dcbz : GCCBuiltin<"__builtin_ppc_dcbz">,
|
||||
Intrinsic<[], [llvm_ptr_ty], []>;
|
||||
// FIXME: __icbt is only valid for pwr8 and up.
|
||||
def int_ppc_icbt : GCCBuiltin<"__builtin_ppc_icbt">,
|
||||
Intrinsic<[], [llvm_ptr_ty], []>;
|
||||
|
||||
|
@ -60,18 +60,3 @@ entry:
|
||||
ret void
|
||||
}
|
||||
declare void @llvm.ppc.iospace.sync()
|
||||
|
||||
; FIXME: __icbt is only valid for pwr8 and up.
|
||||
define dso_local void @test_builtin_ppc_icbt() {
|
||||
; CHECK-LABEL: test_builtin_ppc_icbt:
|
||||
; CHECK: # %bb.0: # %entry
|
||||
; CHECK-NEXT: lwz 3, -8(1)
|
||||
; CHECK-NEXT: icbt 0, 0, 3
|
||||
; CHECK-NEXT: blr
|
||||
entry:
|
||||
%a = alloca i8*, align 8
|
||||
%0 = load i8*, i8** %a, align 8
|
||||
call void @llvm.ppc.icbt(i8* %0)
|
||||
ret void
|
||||
}
|
||||
declare void @llvm.ppc.icbt(i8*)
|
||||
|
@ -94,7 +94,6 @@ entry:
|
||||
}
|
||||
declare void @llvm.ppc.iospace.sync()
|
||||
|
||||
; FIXME: __icbt is only valid for pwr8 and up.
|
||||
define dso_local void @test_builtin_ppc_icbt() {
|
||||
; CHECK-LABEL: test_builtin_ppc_icbt:
|
||||
; CHECK: # %bb.0: # %entry
|
||||
|
Loading…
Reference in New Issue
Block a user