Browse Source
* mips-opc.c (mips_builtin_opcodes): Add "sync_acquire", "sync_mb", "sync_release", "sync_rmb" and "sync_wmb". gas/testsuite/ * gas/mips/mips32r2-sync.d: New test for MIPS32r2 "sync" instruction variants. * gas/mips/octeon@mips32r2-sync.d: Likewise, Octeon version. * gas/mips/mips32r2-sync.s: Source for the new test. * gas/mips/mips.exp: Run the new test.binutils-2_21-branch
7 changed files with 104 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||
#objdump: -dr --prefix-addresses --show-raw-insn |
|||
#name: MIPS32r2 sync instructions |
|||
#as: -32 |
|||
#source: mips32r2-sync.s |
|||
|
|||
# Check MIPS32r2 sync instructions assembly and disassembly |
|||
|
|||
.*: +file format .*mips.* |
|||
|
|||
Disassembly of section \.text: |
|||
[0-9a-f]+ <[^>]*> 0000000f sync |
|||
[0-9a-f]+ <[^>]*> 0000008f sync 0x2 |
|||
[0-9a-f]+ <[^>]*> 0000010f sync_wmb |
|||
[0-9a-f]+ <[^>]*> 0000020f sync 0x8 |
|||
[0-9a-f]+ <[^>]*> 0000040f sync_mb |
|||
[0-9a-f]+ <[^>]*> 0000044f sync_acquire |
|||
[0-9a-f]+ <[^>]*> 0000048f sync_release |
|||
[0-9a-f]+ <[^>]*> 000004cf sync_rmb |
|||
[0-9a-f]+ <[^>]*> 0000060f sync 0x18 |
|||
[0-9a-f]+ <[^>]*> 0000000f sync |
|||
[0-9a-f]+ <[^>]*> 0000008f sync 0x2 |
|||
[0-9a-f]+ <[^>]*> 0000010f sync_wmb |
|||
[0-9a-f]+ <[^>]*> 0000020f sync 0x8 |
|||
[0-9a-f]+ <[^>]*> 0000040f sync_mb |
|||
[0-9a-f]+ <[^>]*> 0000044f sync_acquire |
|||
[0-9a-f]+ <[^>]*> 0000048f sync_release |
|||
[0-9a-f]+ <[^>]*> 000004cf sync_rmb |
|||
[0-9a-f]+ <[^>]*> 0000060f sync 0x18 |
|||
\.\.\. |
|||
@ -0,0 +1,26 @@ |
|||
# Source file to test assembly of MIPS32r2 sync instructions. |
|||
|
|||
.text |
|||
foo: |
|||
sync |
|||
sync 2 |
|||
sync_wmb |
|||
sync 8 |
|||
sync_mb |
|||
sync_acquire |
|||
sync_release |
|||
sync_rmb |
|||
sync 0x18 |
|||
sync 0 |
|||
sync 2 |
|||
sync 4 |
|||
sync 8 |
|||
sync 0x10 |
|||
sync 0x11 |
|||
sync 0x12 |
|||
sync 0x13 |
|||
sync 0x18 |
|||
|
|||
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... |
|||
.align 2 |
|||
.space 8 |
|||
@ -0,0 +1,29 @@ |
|||
#objdump: -dr --prefix-addresses --show-raw-insn |
|||
#name: MIPS32r2 sync instructions |
|||
#as: -32 |
|||
#source: mips32r2-sync.s |
|||
|
|||
# Check MIPS32r2 sync instructions assembly and disassembly (Octeon). |
|||
|
|||
.*: +file format .*mips.* |
|||
|
|||
Disassembly of section \.text: |
|||
[0-9a-f]+ <[^>]*> 0000000f sync |
|||
[0-9a-f]+ <[^>]*> 0000008f synciobdma |
|||
[0-9a-f]+ <[^>]*> 0000010f syncw |
|||
[0-9a-f]+ <[^>]*> 0000020f sync 0x8 |
|||
[0-9a-f]+ <[^>]*> 0000040f sync_mb |
|||
[0-9a-f]+ <[^>]*> 0000044f sync_acquire |
|||
[0-9a-f]+ <[^>]*> 0000048f sync_release |
|||
[0-9a-f]+ <[^>]*> 000004cf sync_rmb |
|||
[0-9a-f]+ <[^>]*> 0000060f sync 0x18 |
|||
[0-9a-f]+ <[^>]*> 0000000f sync |
|||
[0-9a-f]+ <[^>]*> 0000008f synciobdma |
|||
[0-9a-f]+ <[^>]*> 0000010f syncw |
|||
[0-9a-f]+ <[^>]*> 0000020f sync 0x8 |
|||
[0-9a-f]+ <[^>]*> 0000040f sync_mb |
|||
[0-9a-f]+ <[^>]*> 0000044f sync_acquire |
|||
[0-9a-f]+ <[^>]*> 0000048f sync_release |
|||
[0-9a-f]+ <[^>]*> 000004cf sync_rmb |
|||
[0-9a-f]+ <[^>]*> 0000060f sync 0x18 |
|||
\.\.\. |
|||
Loading…
Reference in new issue