mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Use ldr.n to workaround a darwin assembler bug.
llvm-svn: 85980
This commit is contained in:
parent
deed780bc6
commit
1a06b12330
@ -326,9 +326,10 @@ def tRestore : T1pIs<(outs tGPR:$dst), (ins t_addrmode_sp:$addr), IIC_iLoadi,
|
|||||||
"ldr", "\t$dst, $addr", []>;
|
"ldr", "\t$dst, $addr", []>;
|
||||||
|
|
||||||
// Load tconstpool
|
// Load tconstpool
|
||||||
|
// FIXME: Use ldr.n to work around a Darwin assembler bug.
|
||||||
let canFoldAsLoad = 1 in
|
let canFoldAsLoad = 1 in
|
||||||
def tLDRpci : T1pIs<(outs tGPR:$dst), (ins i32imm:$addr), IIC_iLoadi,
|
def tLDRpci : T1pIs<(outs tGPR:$dst), (ins i32imm:$addr), IIC_iLoadi,
|
||||||
"ldr", "\t$dst, $addr",
|
"ldr.n", "\t$dst, $addr",
|
||||||
[(set tGPR:$dst, (load (ARMWrapper tconstpool:$addr)))]>;
|
[(set tGPR:$dst, (load (ARMWrapper tconstpool:$addr)))]>;
|
||||||
|
|
||||||
// Special LDR for loads from non-pc-relative constpools.
|
// Special LDR for loads from non-pc-relative constpools.
|
||||||
|
Loading…
Reference in New Issue
Block a user