[llvm-commits] [llvm] r52828 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Anton Korobeynikov
asl at math.spbu.ru
Fri Jun 27 09:10:21 PDT 2008
Author: asl
Date: Fri Jun 27 11:10:20 2008
New Revision: 52828
URL: http://llvm.org/viewvc/llvm-project?rev=52828&view=rev
Log:
Provide correct encoding for PPC LWARX instructions.
Patch by Gary Benson!
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=52828&r1=52827&r2=52828&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Fri Jun 27 11:10:20 2008
@@ -531,8 +531,8 @@
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 {
More information about the llvm-commits
mailing list