Provide correct encoding for PPC LWARX instructions.

Patch by Gary Benson!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-06-27 16:10:20 +00:00
parent ca29dffa16
commit b2931f29f3

View File

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