diff options
Diffstat (limited to 'gas/testsuite/gas/mips/add.d')
-rw-r--r-- | gas/testsuite/gas/mips/add.d | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/add.d b/gas/testsuite/gas/mips/add.d new file mode 100644 index 0000000..8c21d1d --- /dev/null +++ b/gas/testsuite/gas/mips/add.d @@ -0,0 +1,20 @@ +#objdump: -dr --prefix-addresses -mmips:4000 +#name: MIPS add + +# Test the add macro. + +.*: +file format .*mips.* + +Disassembly of section .text: +0+0000 <[^>]*> addi \$a0,\$a0,0 +0+0004 <[^>]*> addi \$a0,\$a0,1 +0+0008 <[^>]*> li \$at,0x8000 +0+000c <[^>]*> add \$a0,\$a0,\$at +0+0010 <[^>]*> addi \$a0,\$a0,-32768 +0+0014 <[^>]*> lui \$at,0x1 +0+0018 <[^>]*> add \$a0,\$a0,\$at +0+001c <[^>]*> lui \$at,0x1 +0+0020 <[^>]*> ori \$at,\$at,0xa5a5 +0+0024 <[^>]*> add \$a0,\$a0,\$at +0+0028 <[^>]*> addiu \$a0,\$a0,1 +0+002c <[^>]*> nop |