mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
[PowerPC] Fix readcyclecounter to be custom expanded for all 32-bit targets
We need to use the custom expansion of readcyclecounter on all 32-bit targets (even those with 64-bit registers). This should fix the ppc64 buildbot. llvm-svn: 223182
This commit is contained in:
parent
0c91cccef8
commit
2b306926ed
@ -599,12 +599,10 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM)
|
||||
}
|
||||
}
|
||||
|
||||
if (Subtarget.has64BitSupport()) {
|
||||
if (Subtarget.has64BitSupport())
|
||||
setOperationAction(ISD::PREFETCH, MVT::Other, Legal);
|
||||
setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, Legal);
|
||||
} else {
|
||||
setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, Custom);
|
||||
}
|
||||
|
||||
setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, isPPC64 ? Legal : Custom);
|
||||
|
||||
if (!isPPC64) {
|
||||
setOperationAction(ISD::ATOMIC_LOAD, MVT::i64, Expand);
|
||||
|
@ -1,6 +1,7 @@
|
||||
target datalayout = "E-m:e-p:32:32-i64:64-n32"
|
||||
target triple = "powerpc"
|
||||
; RUN: llc < %s | FileCheck %s
|
||||
; RUN: llc -mcpu=ppc < %s | FileCheck %s
|
||||
; RUN: llc -mcpu=pwr7 < %s | FileCheck %s
|
||||
|
||||
define i64 @test1() nounwind {
|
||||
entry:
|
||||
|
Loading…
x
Reference in New Issue
Block a user