mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
[mips] Add instruction alias (negu).
Summary: negu $reg is equivalent to negu $reg, $reg. Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D3510 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3fa0a85ce8
commit
1afb0ccb40
@ -1215,6 +1215,8 @@ def : InstAlias<"not $rt, $rs",
|
||||
(NOR GPR32Opnd:$rt, GPR32Opnd:$rs, ZERO), 0>;
|
||||
def : InstAlias<"neg $rt, $rs",
|
||||
(SUB GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>;
|
||||
def : InstAlias<"negu $rt",
|
||||
(SUBu GPR32Opnd:$rt, ZERO, GPR32Opnd:$rt), 0>;
|
||||
def : InstAlias<"negu $rt, $rs",
|
||||
(SUBu GPR32Opnd:$rt, ZERO, GPR32Opnd:$rs), 1>;
|
||||
def : InstAlias<"slt $rs, $rt, $imm",
|
||||
|
@ -58,6 +58,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -65,6 +65,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -112,6 +112,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -89,6 +89,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -102,6 +102,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nmadd.d $f18,$f9,$f14,$f19
|
||||
|
@ -127,6 +127,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -127,6 +127,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -140,6 +140,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nop
|
||||
|
@ -154,6 +154,8 @@
|
||||
mult $sp,$v0
|
||||
multu $gp,$k0
|
||||
multu $t1,$s2
|
||||
negu $2 # CHECK: negu $2, $2 # encoding: [0x00,0x02,0x10,0x23]
|
||||
negu $2,$3 # CHECK: negu $2, $3 # encoding: [0x00,0x03,0x10,0x23]
|
||||
neg.d $f27,$f18
|
||||
neg.s $f1,$f15
|
||||
nmadd.s $f0,$f5,$f25,$f12
|
||||
|
Loading…
Reference in New Issue
Block a user