[llvm-commits] [llvm] r121652 - in /llvm/trunk: lib/Target/MBlaze/MBlazeInstrInfo.td test/CodeGen/MBlaze/loop.ll
Wesley Peck
peckw at wesleypeck.com
Sun Dec 12 14:53:14 PST 2010
Author: peckw
Date: Sun Dec 12 16:53:14 2010
New Revision: 121652
URL: http://llvm.org/viewvc/llvm-project?rev=121652&view=rev
Log:
Missed some ADDI <-> ADDIK conversions in 121649.
Modified:
llvm/trunk/lib/Target/MBlaze/MBlazeInstrInfo.td
llvm/trunk/test/CodeGen/MBlaze/loop.ll
Modified: llvm/trunk/lib/Target/MBlaze/MBlazeInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/MBlazeInstrInfo.td?rev=121652&r1=121651&r2=121652&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/MBlazeInstrInfo.td (original)
+++ llvm/trunk/lib/Target/MBlaze/MBlazeInstrInfo.td Sun Dec 12 16:53:14 2010
@@ -381,14 +381,14 @@
//===----------------------------------------------------------------------===//
let isAsCheapAsAMove = 1 in {
- def ADDI : ArithI<0x08, "addi ", add, simm16, immSExt16>;
- def ADDIC : ArithNI<0x0A, "addic ", simm16, immSExt16>;
- def ADDIK : ArithNI<0x0C, "addik ", simm16, immSExt16>;
- def ADDIKC : ArithI<0x0E, "addikc ", addc, simm16, immSExt16>;
- def RSUBI : ArithRI<0x09, "rsubi ", sub, simm16, immSExt16>;
- def RSUBIC : ArithRNI<0x0B, "rsubic ", simm16, immSExt16>;
- def RSUBIK : ArithRNI<0x0D, "rsubik ", simm16, immSExt16>;
- def RSUBIKC : ArithRI<0x0F, "rsubikc", subc, simm16, immSExt16>;
+ def ADDI : ArithI<0x08, "addi ", addc, simm16, immSExt16>;
+ def ADDIC : ArithI<0x0A, "addic ", adde, simm16, immSExt16>;
+ def ADDIK : ArithI<0x0C, "addik ", add, simm16, immSExt16>;
+ def ADDIKC : ArithNI<0x0E, "addikc ", simm16, immSExt16>;
+ def RSUBI : ArithRI<0x09, "rsubi ", subc, simm16, immSExt16>;
+ def RSUBIC : ArithRI<0x0B, "rsubic ", sube, simm16, immSExt16>;
+ def RSUBIK : ArithRI<0x0D, "rsubik ", sub, simm16, immSExt16>;
+ def RSUBIKC : ArithRNI<0x0F, "rsubikc", simm16, immSExt16>;
def ANDNI : ArithNI<0x2B, "andni ", uimm16, immZExt16>;
def ANDI : LogicI<0x29, "andi ", and>;
def ORI : LogicI<0x28, "ori ", or>;
Modified: llvm/trunk/test/CodeGen/MBlaze/loop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MBlaze/loop.ll?rev=121652&r1=121651&r2=121652&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MBlaze/loop.ll (original)
+++ llvm/trunk/test/CodeGen/MBlaze/loop.ll Sun Dec 12 16:53:14 2010
@@ -27,11 +27,10 @@
loop_inner_finish:
%inner.5 = add i32 %inner.2, 1
- ; CHECK: addi {{.*, 1}}
-
call i32 (i8*,...)* @printf( i8* getelementptr([19 x i8]* @MSG,i32 0,i32 0),
i32 %inner.0, i32 %inner.1, i32 %inner.2 )
; CHECK: brlid
+ ; CHECK: addik {{.*, 1}}
%inner.6 = icmp eq i32 %inner.5, 100
; CHECK: cmp
More information about the llvm-commits
mailing list