mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +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;
|
PPC970_DGroup_Single;
|
||||||
|
|
||||||
// Atomic operations.
|
// Atomic operations.
|
||||||
def LWARX : Pseudo<(outs GPRC:$rD), (ins memrr:$ptr, i32imm:$label),
|
def LWARX : XForm_1<31, 20, (outs GPRC:$rD), (ins memrr:$ptr, i32imm:$label),
|
||||||
"\nLa${label}_entry:\n\tlwarx $rD, $ptr",
|
"\nLa${label}_entry:\n\tlwarx $rD, $ptr", LdStLWARX,
|
||||||
[(set GPRC:$rD, (PPClarx xoaddr:$ptr, imm:$label))]>;
|
[(set GPRC:$rD, (PPClarx xoaddr:$ptr, imm:$label))]>;
|
||||||
|
|
||||||
let Defs = [CR0] in {
|
let Defs = [CR0] in {
|
||||||
|
Loading…
Reference in New Issue
Block a user