mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Missed some ADDI <-> ADDIK conversions in 121649.
llvm-svn: 121652
This commit is contained in:
parent
ec32ecb316
commit
f842b79b4b
@ -381,14 +381,14 @@ let Predicates=[HasDiv] in {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
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>;
|
||||
|
@ -27,11 +27,10 @@ loop_inner:
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user