6 changed files with 68 additions and 4 deletions
@ -0,0 +1,17 @@ |
|||
#objdump: -dr --prefix-addresses --show-raw-insn |
|||
#name: MIPS MIPS64 instructions |
|||
#as: -mips64 |
|||
|
|||
# Check MIPS32 instruction assembly |
|||
|
|||
.*: +file format elf.*mips.* |
|||
|
|||
Disassembly of section .text: |
|||
0+0000 <[^>]*> 70410825 dclo \$at,\$v0 |
|||
0+0004 <[^>]*> 70831824 dclz \$v1,\$a0 |
|||
0+0008 <[^>]*> 48232000 dmfc2 \$v1,\$4 |
|||
0+000c <[^>]*> 48242800 dmfc2 \$a0,\$5 |
|||
0+0010 <[^>]*> 48253007 dmfc2 \$a1,\$6,7 |
|||
0+0014 <[^>]*> 48a63800 dmtc2 \$a2,\$7 |
|||
0+0018 <[^>]*> 48a74000 dmtc2 \$a3,\$8 |
|||
0+001c <[^>]*> 48a84807 dmtc2 \$t0,\$9,7 |
|||
@ -0,0 +1,22 @@ |
|||
# source file to test assembly of mips64 instructions |
|||
|
|||
.set noreorder |
|||
.set noat |
|||
|
|||
.globl text_label .text |
|||
text_label: |
|||
|
|||
# unprivileged CPU instructions |
|||
|
|||
dclo $1, $2 |
|||
dclz $3, $4 |
|||
|
|||
# unprivileged coprocessor instructions. |
|||
# these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes. |
|||
|
|||
dmfc2 $3, $4 |
|||
dmfc2 $4, $5, 0 # disassembles without sel |
|||
dmfc2 $5, $6, 7 |
|||
dmtc2 $6, $7 |
|||
dmtc2 $7, $8, 0 # disassembles without sel |
|||
dmtc2 $8, $9, 7 |
|||
Loading…
Reference in new issue