Provide correct encoding for PPC LWARX instructions.

Patch by Gary Benson!

llvm-svn: 52828
This commit is contained in:
Anton Korobeynikov 2008-06-27 16:10:20 +00:00
parent d3c6fde00b
commit eb63554d81

View File

@ -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 {