diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-09-14 07:15:21 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-09-14 07:15:21 +0000 |
commit | ab48d10effb223de0c9516ccae616a80fef27df8 (patch) | |
tree | aa2b56981148360f1eeac03c65ddfd514e4f0a08 /test | |
parent | 47b33528d1b4298bf8cc5dcca8b531dfd0e704bb (diff) | |
download | external_llvm-ab48d10effb223de0c9516ccae616a80fef27df8.zip external_llvm-ab48d10effb223de0c9516ccae616a80fef27df8.tar.gz external_llvm-ab48d10effb223de0c9516ccae616a80fef27df8.tar.bz2 |
Support for microMIPS DIV instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Disassembler/Mips/micromips.txt | 6 | ||||
-rw-r--r-- | test/MC/Disassembler/Mips/micromips_le.txt | 6 | ||||
-rw-r--r-- | test/MC/Mips/micromips-alu-instructions.s | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/Disassembler/Mips/micromips.txt b/test/MC/Disassembler/Mips/micromips.txt index b963b05..a6a3575 100644 --- a/test/MC/Disassembler/Mips/micromips.txt +++ b/test/MC/Disassembler/Mips/micromips.txt @@ -88,6 +88,12 @@ # CHECK: multu $9, $7 0x00 0xe9 0x9b 0x3c +# CHECK-EB: div $zero, $9, $7 +0x00 0xe9 0xab 0x3c + +# CHECK-EB: divu $zero, $9, $7 +0x00 0xe9 0xbb 0x3c + # CHECK: sll $4, $3, 7 0x00 0x83 0x38 0x00 diff --git a/test/MC/Disassembler/Mips/micromips_le.txt b/test/MC/Disassembler/Mips/micromips_le.txt index ef08158..253223c 100644 --- a/test/MC/Disassembler/Mips/micromips_le.txt +++ b/test/MC/Disassembler/Mips/micromips_le.txt @@ -88,6 +88,12 @@ # CHECK: multu $9, $7 0xe9 0x00 0x3c 0x9b +# CHECK: div $zero, $9, $7 +0xe9 0x00 0x3c 0xab + +# CHECK: divu $zero, $9, $7 +0xe9 0x00 0x3c 0xbb + # CHECK: sll $4, $3, 7 0x83 0x00 0x00 0x38 diff --git a/test/MC/Mips/micromips-alu-instructions.s b/test/MC/Mips/micromips-alu-instructions.s index 3f6079c..bd5cdd3 100644 --- a/test/MC/Mips/micromips-alu-instructions.s +++ b/test/MC/Mips/micromips-alu-instructions.s @@ -36,6 +36,8 @@ # CHECK-EL: mul $9, $6, $7 # encoding: [0xe6,0x00,0x10,0x4a] # CHECK-EL: mult $9, $7 # encoding: [0xe9,0x00,0x3c,0x8b] # CHECK-EL: multu $9, $7 # encoding: [0xe9,0x00,0x3c,0x9b] +# CHECK-EL: div $zero, $9, $7 # encoding: [0xe9,0x00,0x3c,0xab] +# CHECK-EL: divu $zero, $9, $7 # encoding: [0xe9,0x00,0x3c,0xbb] #------------------------------------------------------------------------------ # Big endian #------------------------------------------------------------------------------ @@ -68,6 +70,8 @@ # CHECK-EB: mul $9, $6, $7 # encoding: [0x00,0xe6,0x4a,0x10] # CHECK-EB: mult $9, $7 # encoding: [0x00,0xe9,0x8b,0x3c] # CHECK-EB: multu $9, $7 # encoding: [0x00,0xe9,0x9b,0x3c] +# CHECK-EB: div $zero, $9, $7 # encoding: [0x00,0xe9,0xab,0x3c] +# CHECK-EB: divu $zero, $9, $7 # encoding: [0x00,0xe9,0xbb,0x3c] add $9, $6, $7 add $9, $6, 17767 addu $9, $6, -15001 @@ -97,3 +101,5 @@ mul $9, $6, $7 mult $9, $7 multu $9, $7 + div $0, $9, $7 + divu $0, $9, $7 |