diff options
author | Vladimir Medic <Vladimir.Medic@imgtec.com> | 2013-10-01 09:48:56 +0000 |
---|---|---|
committer | Vladimir Medic <Vladimir.Medic@imgtec.com> | 2013-10-01 09:48:56 +0000 |
commit | d59ad8a8013fd76177fb61c741562af3024d34cd (patch) | |
tree | f9eee7577972b76ae2852a606fe1a453f5648537 /test/MC/Mips | |
parent | c8d0d007811731b114fc0300cd2a1c18258366b0 (diff) | |
download | external_llvm-d59ad8a8013fd76177fb61c741562af3024d34cd.zip external_llvm-d59ad8a8013fd76177fb61c741562af3024d34cd.tar.gz external_llvm-d59ad8a8013fd76177fb61c741562af3024d34cd.tar.bz2 |
This patch adds aliases for Mips sub instruction with immediate operands. Corresponding test cases are added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-rw-r--r-- | test/MC/Mips/mips-alu-instructions.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/Mips/mips-alu-instructions.s b/test/MC/Mips/mips-alu-instructions.s index eccc288..68a8da0 100644 --- a/test/MC/Mips/mips-alu-instructions.s +++ b/test/MC/Mips/mips-alu-instructions.s @@ -86,7 +86,9 @@ # CHECK: mult $3, $5 # encoding: [0x18,0x00,0x65,0x00] # CHECK: multu $3, $5 # encoding: [0x19,0x00,0x65,0x00] # CHECK: sub $9, $6, $7 # encoding: [0x22,0x48,0xc7,0x00] +# CHECK: addi $sp, $sp, -56 # encoding: [0xc8,0xff,0xbd,0x23] # CHECK: subu $4, $3, $5 # encoding: [0x23,0x20,0x65,0x00] +# CHECK: addiu $sp, $sp, -40 # encoding: [0xd8,0xff,0xbd,0x27] # CHECK: neg $6, $7 # encoding: [0x22,0x30,0x07,0x00] # CHECK: negu $6, $7 # encoding: [0x23,0x30,0x07,0x00] # CHECK: move $7, $8 # encoding: [0x21,0x38,0x00,0x01] @@ -109,7 +111,9 @@ mult $3,$5 multu $3,$5 sub $9,$6,$7 + sub $sp,$sp,56 subu $4,$3,$5 + subu $sp,$sp,40 neg $6,$7 negu $6,$7 move $7,$8 |