Browse Source
into jrc/jalrc versions if ISA_MIPS32+ and not doing the swap, hence avoiding to emit a nop. * gas/mips/mips.exp: Run new test. * gas/testsuite/gas/mips/mips16e-jrc.s: New test for converting jalr/jr to the compact jalrc/jrc instructions. * gas/testsuite/gas/mips/mips16e-jrc.d: New.gdb-csl-arm-20051020-branch
6 changed files with 57 additions and 6 deletions
@ -0,0 +1,14 @@ |
|||
#objdump: -dr -mmips:isa32 -mmips:16 |
|||
#as: -march=mips32 -mips16 |
|||
#name: mips16e jalrc/jrc |
|||
.*: file format .* |
|||
Disassembly of section .text: |
|||
00000000 <.text>: |
|||
0: eac0 jalrc v0 |
|||
2: e8a0 jrc ra |
|||
4: 6a01 li v0,1 |
|||
6: 6500 nop |
|||
8: 6500 nop |
|||
a: 6500 nop |
|||
c: 6500 nop |
|||
e: 6500 nop |
|||
@ -0,0 +1,6 @@ |
|||
# Test the generation of jalrc/jrc opcodes |
|||
jalr $31,$2 |
|||
jr $31 |
|||
li $2,1 |
|||
|
|||
.p2align 4 |
|||
Loading…
Reference in new issue