Browse Source
gas/ * config/tc-mips.c (md_apply_fix): Apply alignment check to the symbol and offset rather than *valP for BFD_RELOC_MIPS_18_PCREL_S3. Also update the error message for BFD_RELOC_MIPS_19_PCREL_S2. gas/testsuite/ * gas/mips/r6-64.s: Remove .align directives from LDPC instructions and add further tests for LDPC. * gas/mips/r6-64-n32.d: remove the NOPs from LDPC expected output and update for new tests. * gas/mips/r6-64-n64.d: Likewise. * gas/mips/ldpc-unalign.l: New file. * gas/mips/ldpc-unalign.s: Likewise. * gas/mips/mips.exp: Run ldpc-unalign test.binutils-2_25-branch
9 changed files with 93 additions and 26 deletions
@ -0,0 +1,9 @@ |
|||
.*: Assembler messages: |
|||
.*:2: Error: PC-relative access using misaligned offset \(4\) |
|||
.*:3: Error: PC-relative access using misaligned offset \(4\) |
|||
.*:4: Error: PC-relative access using misaligned symbol \(1c\) |
|||
.*:5: Error: PC-relative access using misaligned symbol \(1c\) |
|||
.*:6: Error: PC-relative access using misaligned symbol \(1c\) |
|||
.*:6: Error: PC-relative access using misaligned offset \(4\) |
|||
.*:7: Error: PC-relative access using misaligned symbol \(1c\) |
|||
.*:7: Error: PC-relative access using misaligned offset \(4\) |
|||
@ -0,0 +1,18 @@ |
|||
.text |
|||
ldpc $4, 1f+4 |
|||
ldpc $4, 1f+4 |
|||
ldpc $4, 2f |
|||
ldpc $4, 2f |
|||
ldpc $4, 2f+4 |
|||
ldpc $4, 2f+4 |
|||
.align 3 |
|||
1: |
|||
nop |
|||
2: |
|||
nop |
|||
nop |
|||
nop |
|||
|
|||
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... |
|||
.align 2 |
|||
.space 8 |
|||
Loading…
Reference in new issue