Skip to content

Commit

Permalink
MC: alias registers for Mips
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Feb 12, 2019
1 parent 3a463f6 commit 962276e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 30 deletions.
6 changes: 3 additions & 3 deletions suite/MC/Mips/micromips-expansions.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
0xa7,0x41,0x01,0x00 = lui $a3, 1
0xe7,0x50,0x02,0x00 = ori $a3, $a3, 2
0x07,0x01,0x50,0x39 = addu $a3, $a3, $t0
0x8a,0x00,0x50,0x51 = addu $t2, $at0, $a0
0x8a,0x00,0x50,0x51 = addu $t2, $t2, $a0
0x21,0x01,0x50,0x09 = addu $at, $at, $t1
0xaa,0x41,0x0a,0x00 = lui $t2, 10
0x8a,0x00,0x50,0x51 = addu $t2, $at0, $a0
0x4a,0xfd,0x7b,0x00 = lw $t2, 123($at0)
0x8a,0x00,0x50,0x51 = addu $t2, $t2, $a0
0x4a,0xfd,0x7b,0x00 = lw $t2, 123($t2)
0xa1,0x41,0x02,0x00 = lui $at, 2
0x21,0x01,0x50,0x09 = addu $at, $at, $t1
0x41,0xf9,0x40,0xe2 = sw $t2, 57920($at)
6 changes: 3 additions & 3 deletions suite/MC/Mips/mips-alu-instructions.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
0x25,0x18,0x65,0x00 = or $v1, $v1, $a1
0x67,0x45,0xa4,0x34 = ori $a0, $a1, 17767
0x67,0x45,0xc9,0x34 = ori $t1, $a2, 17767
0x80,0x00,0x6b,0x35 = ori $t3, $at1, 128
0x80,0x00,0x6b,0x35 = ori $t3, $t3, 128
0xc2,0x49,0x26,0x00 = rotr $t1, $a2, 7
0x46,0x48,0xe6,0x00 = rotrv $t1, $a2, $a3
0xc0,0x21,0x03,0x00 = sll $a0, $v1, 7
Expand All @@ -27,7 +27,7 @@
0x26,0x18,0x65,0x00 = xor $v1, $v1, $a1
0x67,0x45,0xc9,0x38 = xori $t1, $a2, 17767
0x67,0x45,0xc9,0x38 = xori $t1, $a2, 17767
0x0c,0x00,0x6b,0x39 = xori $t3, $at1, 12
0x0c,0x00,0x6b,0x39 = xori $t3, $t3, 12
0xa0,0x30,0x07,0x7c = wsbh $a2, $a3
0x27,0x38,0x00,0x01 = not $a3, $t0
0x20,0x48,0xc7,0x00 = add $t1, $a2, $a3
Expand All @@ -36,7 +36,7 @@
0x67,0x45,0xc9,0x20 = addi $t1, $a2, 17767
0x67,0x45,0x29,0x21 = addi $t1, $t1, 17767
0x67,0xc5,0xc9,0x24 = addiu $t1, $a2, -15001
0x28,0x00,0x6b,0x25 = addiu $t3, $at1, 40
0x28,0x00,0x6b,0x25 = addiu $t3, $t3, 40
0x21,0x48,0xc7,0x00 = addu $t1, $a2, $a3
0x00,0x00,0xc7,0x70 = madd $a2, $a3
0x01,0x00,0xc7,0x70 = maddu $a2, $a3
Expand Down
5 changes: 2 additions & 3 deletions suite/MC/Mips/mips-expansions.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
0x01,0x00,0x07,0x3c = lui $a3, 1
0x02,0x00,0xe7,0x34 = ori $a3, $a3, 2
0x21,0x38,0xe8,0x00 = addu $a3, $a3, $t0
0x21,0x50,0x44,0x01 = addu $t2, $at0, $a0
0x21,0x50,0x44,0x01 = addu $t2, $t2, $a0
0x21,0x08,0x29,0x00 = addu $at, $at, $t1
0x0a,0x00,0x0a,0x3c = lui $t2, 10
0x21,0x50,0x44,0x01 = addu $t2, $at0, $a0
0x7b,0x00,0x4a,0x8d = lw $t2, 123($at0)
0x7b,0x00,0x4a,0x8d = lw $t2, 123($t2)
0x02,0x00,0x01,0x3c = lui $at, 2
0x21,0x08,0x29,0x00 = addu $at, $at, $t1
0x40,0xe2,0x2a,0xac = sw $t2, 57920($at)
10 changes: 5 additions & 5 deletions suite/MC/Mips/mips-fpu-instructions.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
0x24,0x73,0x20,0x46 = cvt.w.d $f12, $f14
0xa4,0x39,0x00,0x46 = cvt.w.s $f6, $f7
0x00,0x00,0x46,0x44 = cfc1 $a2, $0
0x00,0xf8,0xca,0x44 = ctc1 $t2, $ra
0x00,0xf8,0xca,0x44 = ctc1 $t2, $31
0x00,0x38,0x06,0x44 = mfc1 $a2, $f7
0x10,0x28,0x00,0x00 = mfhi $a1
0x12,0x28,0x00,0x00 = mflo $a1
Expand Down Expand Up @@ -87,7 +87,7 @@
0x08,0xd0,0xd2,0x4e = swxc1 $f26, $s2($s6)
0x00,0x20,0x71,0x44 = mfhc1 $s1, $f4
0x00,0x30,0xf1,0x44 = mthc1 $s1, $f6
0x10,0x00,0xa4,0xeb = swc2 $a0, 16($sp)
0x10,0x00,0xa4,0xfb = sdc2 $a0, 16($sp)
0x0c,0x00,0xeb,0xcb = lwc2 $t3, 12($ra)
0x0c,0x00,0xeb,0xdb = ldc2 $t3, 12($ra)
0x10,0x00,0xa4,0xeb = swc2 $4, 16($sp)
0x10,0x00,0xa4,0xfb = sdc2 $4, 16($sp)
0x0c,0x00,0xeb,0xcb = lwc2 $11, 12($ra)
0x0c,0x00,0xeb,0xdb = ldc2 $11, 12($ra)
32 changes: 16 additions & 16 deletions suite/MC/Mips/test_ctrlregs.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
0x78,0x7e,0x31,0xd9 = cfcmsa $a3, $6
0x78,0x7e,0x3a,0x19 = cfcmsa $t0, $7
0x78,0x7e,0x3a,0x19 = cfcmsa $t0, $7
0x78,0x3e,0x08,0x19 = ctcmsa $0, $1
0x78,0x3e,0x08,0x19 = ctcmsa $0, $1
0x78,0x3e,0x10,0x59 = ctcmsa $at, $2
0x78,0x3e,0x10,0x59 = ctcmsa $at, $2
0x78,0x3e,0x18,0x99 = ctcmsa $v0, $3
0x78,0x3e,0x18,0x99 = ctcmsa $v0, $3
0x78,0x3e,0x20,0xd9 = ctcmsa $v1, $4
0x78,0x3e,0x20,0xd9 = ctcmsa $v1, $4
0x78,0x3e,0x29,0x19 = ctcmsa $a0, $5
0x78,0x3e,0x29,0x19 = ctcmsa $a0, $5
0x78,0x3e,0x31,0x59 = ctcmsa $a1, $6
0x78,0x3e,0x31,0x59 = ctcmsa $a1, $6
0x78,0x3e,0x39,0x99 = ctcmsa $a2, $7
0x78,0x3e,0x39,0x99 = ctcmsa $a2, $7
0x78,0x3e,0x41,0xd9 = ctcmsa $a3, $8
0x78,0x3e,0x41,0xd9 = ctcmsa $a3, $8
0x78,0x3e,0x08,0x19 = ctcmsa $0, $at
0x78,0x3e,0x08,0x19 = ctcmsa $0, $at
0x78,0x3e,0x10,0x59 = ctcmsa $1, $v0
0x78,0x3e,0x10,0x59 = ctcmsa $1, $v0
0x78,0x3e,0x18,0x99 = ctcmsa $2, $v1
0x78,0x3e,0x18,0x99 = ctcmsa $2, $v1
0x78,0x3e,0x20,0xd9 = ctcmsa $3, $a0
0x78,0x3e,0x20,0xd9 = ctcmsa $3, $a0
0x78,0x3e,0x29,0x19 = ctcmsa $4, $a1
0x78,0x3e,0x29,0x19 = ctcmsa $4, $a1
0x78,0x3e,0x31,0x59 = ctcmsa $5, $a2
0x78,0x3e,0x31,0x59 = ctcmsa $5, $a2
0x78,0x3e,0x39,0x99 = ctcmsa $6, $a3
0x78,0x3e,0x39,0x99 = ctcmsa $6, $a3
0x78,0x3e,0x41,0xd9 = ctcmsa $7, $t0
0x78,0x3e,0x41,0xd9 = ctcmsa $7, $t0

0 comments on commit 962276e

Please sign in to comment.