
This instruction is a nop on all server cores (certainly on all cores that AIX supports) so it is fine to emit a nop instead of it. In fact, that is exactly what XL emits. So we emit a nop on AIX and we leave the codegen as is on other platforms since there may indeed be cores out there for which this actually does some prefetching.
22 lines
639 B
LLVM
22 lines
639 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-ibm-aix-xcoff | \
|
|
; RUN: FileCheck %s
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-- | \
|
|
; RUN: FileCheck %s --check-prefix=NOTAIX
|
|
define dso_local void @test() local_unnamed_addr {
|
|
; CHECK-LABEL: test:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: blr
|
|
;
|
|
; NOTAIX-LABEL: test:
|
|
; NOTAIX: # %bb.0: # %entry
|
|
; NOTAIX-NEXT: dssall
|
|
; NOTAIX-NEXT: blr
|
|
entry:
|
|
tail call void @llvm.ppc.altivec.dssall()
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.ppc.altivec.dssall()
|