Skip to content

Commit

Permalink
[mips] Change instruction s/daddiu/addiu/ since O32 prohibits the use…
Browse files Browse the repository at this point in the history
… of 64-bit GPRs. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289115 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atanasyan committed Dec 8, 2016
1 parent f375f74 commit 8133f26
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions test/MC/Mips/mips64-register-names-o32.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@
# RUN: -target-abi o32 | FileCheck %s

# Check that the register names are mapped to their correct numbers for o32
# Second byte of daddiu with $zero at rt contains the number of the source
# Second byte of addiu with $zero at rt contains the number of the source
# register.

.set noat
daddiu $zero, $zero, 0 # CHECK: encoding: [0x64,0x00,0x00,0x00]
daddiu $at, $zero, 0 # CHECK: encoding: [0x64,0x01,0x00,0x00]
daddiu $v0, $zero, 0 # CHECK: encoding: [0x64,0x02,0x00,0x00]
daddiu $v1, $zero, 0 # CHECK: encoding: [0x64,0x03,0x00,0x00]
daddiu $a0, $zero, 0 # CHECK: encoding: [0x64,0x04,0x00,0x00]
daddiu $a1, $zero, 0 # CHECK: encoding: [0x64,0x05,0x00,0x00]
daddiu $a2, $zero, 0 # CHECK: encoding: [0x64,0x06,0x00,0x00]
daddiu $a3, $zero, 0 # CHECK: encoding: [0x64,0x07,0x00,0x00]
daddiu $t0, $zero, 0 # CHECK: encoding: [0x64,0x08,0x00,0x00]
daddiu $t1, $zero, 0 # CHECK: encoding: [0x64,0x09,0x00,0x00]
daddiu $t2, $zero, 0 # CHECK: encoding: [0x64,0x0a,0x00,0x00]
daddiu $t3, $zero, 0 # CHECK: encoding: [0x64,0x0b,0x00,0x00]
daddiu $t4, $zero, 0 # CHECK: encoding: [0x64,0x0c,0x00,0x00]
daddiu $t5, $zero, 0 # CHECK: encoding: [0x64,0x0d,0x00,0x00]
daddiu $t6, $zero, 0 # CHECK: encoding: [0x64,0x0e,0x00,0x00]
daddiu $t7, $zero, 0 # CHECK: encoding: [0x64,0x0f,0x00,0x00]
daddiu $s0, $zero, 0 # CHECK: encoding: [0x64,0x10,0x00,0x00]
daddiu $s1, $zero, 0 # CHECK: encoding: [0x64,0x11,0x00,0x00]
daddiu $s2, $zero, 0 # CHECK: encoding: [0x64,0x12,0x00,0x00]
daddiu $s3, $zero, 0 # CHECK: encoding: [0x64,0x13,0x00,0x00]
daddiu $s4, $zero, 0 # CHECK: encoding: [0x64,0x14,0x00,0x00]
daddiu $s5, $zero, 0 # CHECK: encoding: [0x64,0x15,0x00,0x00]
daddiu $s6, $zero, 0 # CHECK: encoding: [0x64,0x16,0x00,0x00]
daddiu $s7, $zero, 0 # CHECK: encoding: [0x64,0x17,0x00,0x00]
daddiu $t8, $zero, 0 # CHECK: encoding: [0x64,0x18,0x00,0x00]
daddiu $t9, $zero, 0 # CHECK: encoding: [0x64,0x19,0x00,0x00]
daddiu $k0, $zero, 0 # CHECK: encoding: [0x64,0x1a,0x00,0x00]
daddiu $k1, $zero, 0 # CHECK: encoding: [0x64,0x1b,0x00,0x00]
daddiu $gp, $zero, 0 # CHECK: encoding: [0x64,0x1c,0x00,0x00]
daddiu $sp, $zero, 0 # CHECK: encoding: [0x64,0x1d,0x00,0x00]
daddiu $fp, $zero, 0 # CHECK: encoding: [0x64,0x1e,0x00,0x00]
daddiu $s8, $zero, 0 # CHECK: encoding: [0x64,0x1e,0x00,0x00]
daddiu $ra, $zero, 0 # CHECK: encoding: [0x64,0x1f,0x00,0x00]
addiu $zero, $zero, 0 # CHECK: encoding: [0x24,0x00,0x00,0x00]
addiu $at, $zero, 0 # CHECK: encoding: [0x24,0x01,0x00,0x00]
addiu $v0, $zero, 0 # CHECK: encoding: [0x24,0x02,0x00,0x00]
addiu $v1, $zero, 0 # CHECK: encoding: [0x24,0x03,0x00,0x00]
addiu $a0, $zero, 0 # CHECK: encoding: [0x24,0x04,0x00,0x00]
addiu $a1, $zero, 0 # CHECK: encoding: [0x24,0x05,0x00,0x00]
addiu $a2, $zero, 0 # CHECK: encoding: [0x24,0x06,0x00,0x00]
addiu $a3, $zero, 0 # CHECK: encoding: [0x24,0x07,0x00,0x00]
addiu $t0, $zero, 0 # CHECK: encoding: [0x24,0x08,0x00,0x00]
addiu $t1, $zero, 0 # CHECK: encoding: [0x24,0x09,0x00,0x00]
addiu $t2, $zero, 0 # CHECK: encoding: [0x24,0x0a,0x00,0x00]
addiu $t3, $zero, 0 # CHECK: encoding: [0x24,0x0b,0x00,0x00]
addiu $t4, $zero, 0 # CHECK: encoding: [0x24,0x0c,0x00,0x00]
addiu $t5, $zero, 0 # CHECK: encoding: [0x24,0x0d,0x00,0x00]
addiu $t6, $zero, 0 # CHECK: encoding: [0x24,0x0e,0x00,0x00]
addiu $t7, $zero, 0 # CHECK: encoding: [0x24,0x0f,0x00,0x00]
addiu $s0, $zero, 0 # CHECK: encoding: [0x24,0x10,0x00,0x00]
addiu $s1, $zero, 0 # CHECK: encoding: [0x24,0x11,0x00,0x00]
addiu $s2, $zero, 0 # CHECK: encoding: [0x24,0x12,0x00,0x00]
addiu $s3, $zero, 0 # CHECK: encoding: [0x24,0x13,0x00,0x00]
addiu $s4, $zero, 0 # CHECK: encoding: [0x24,0x14,0x00,0x00]
addiu $s5, $zero, 0 # CHECK: encoding: [0x24,0x15,0x00,0x00]
addiu $s6, $zero, 0 # CHECK: encoding: [0x24,0x16,0x00,0x00]
addiu $s7, $zero, 0 # CHECK: encoding: [0x24,0x17,0x00,0x00]
addiu $t8, $zero, 0 # CHECK: encoding: [0x24,0x18,0x00,0x00]
addiu $t9, $zero, 0 # CHECK: encoding: [0x24,0x19,0x00,0x00]
addiu $k0, $zero, 0 # CHECK: encoding: [0x24,0x1a,0x00,0x00]
addiu $k1, $zero, 0 # CHECK: encoding: [0x24,0x1b,0x00,0x00]
addiu $gp, $zero, 0 # CHECK: encoding: [0x24,0x1c,0x00,0x00]
addiu $sp, $zero, 0 # CHECK: encoding: [0x24,0x1d,0x00,0x00]
addiu $fp, $zero, 0 # CHECK: encoding: [0x24,0x1e,0x00,0x00]
addiu $s8, $zero, 0 # CHECK: encoding: [0x24,0x1e,0x00,0x00]
addiu $ra, $zero, 0 # CHECK: encoding: [0x24,0x1f,0x00,0x00]

0 comments on commit 8133f26

Please sign in to comment.