mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 22:15:18 +00:00
Provide correct encoding for PPC LWARX instructions.
Patch by Gary Benson! llvm-svn: 52828
This commit is contained in:
parent
d3c6fde00b
commit
eb63554d81
@ -531,8 +531,8 @@ def DCBZL : DCB_Form<1014, 1, (outs), (ins memrr:$dst),
|
||||
PPC970_DGroup_Single;
|
||||
|
||||
// Atomic operations.
|
||||
def LWARX : Pseudo<(outs GPRC:$rD), (ins memrr:$ptr, i32imm:$label),
|
||||
"\nLa${label}_entry:\n\tlwarx $rD, $ptr",
|
||||
def LWARX : XForm_1<31, 20, (outs GPRC:$rD), (ins memrr:$ptr, i32imm:$label),
|
||||
"\nLa${label}_entry:\n\tlwarx $rD, $ptr", LdStLWARX,
|
||||
[(set GPRC:$rD, (PPClarx xoaddr:$ptr, imm:$label))]>;
|
||||
|
||||
let Defs = [CR0] in {
|
||||
|
Loading…
Reference in New Issue
Block a user