From: Nick Clifton Date: Thu, 11 Jan 2007 11:57:05 +0000 (+0000) Subject: * gas/mcore/allinsn.s: Remove use of '#' before numbers - it is a line comment character. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2204714e24debd8c495122615ea1582724db750;p=binutils-gdb.git * gas/mcore/allinsn.s: Remove use of '#' before numbers - it is a line comment character. * gas/mcore/allinsn.d: Adjust expected disassembly to match real output. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f0eebeb133d..06360e9e8a5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,7 +1,12 @@ 2007-01-11 Nick Clifton - * gas/lns/lns.exp (run_list_test): Run the alternative version of - the lns-common-1 test for the MCore target. + * gas/mcore/allinsn.s: Remove use of '#' before numbers - it is a + line comment character. + * gas/mcore/allinsn.d: Adjust expected disassembly to match real + output. + + * gas/lns/lns.exp: Run the alternative version of the lns-common-1 + test for the MCore target. 2007-01-08 Kai Tietz diff --git a/gas/testsuite/gas/mcore/allinsn.d b/gas/testsuite/gas/mcore/allinsn.d index 1565ea5d5fe..a53805bae2f 100644 --- a/gas/testsuite/gas/mcore/allinsn.d +++ b/gas/testsuite/gas/mcore/allinsn.d @@ -40,7 +40,7 @@ Disassembly of section \.text: 14: 300f bclri r15, 0 0+016 : - 16: eff4 bf 0x0 + 16: eff4 bf 0x.*0 0+018 : 18: 3270 bgeni r0, 7 @@ -64,7 +64,7 @@ Disassembly of section \.text: 24: 2df3 bmaski r3, 31 0+026
: - 26: f7ff br 0x26 + 26: f7ff br 0x.*26 0+028 : 28: 00f4 brev r4 @@ -73,10 +73,10 @@ Disassembly of section \.text: 2a: 35e5 bseti r5, 30 0+02c : - 2c: ffe9 bsr 0x0 + 2c: ffe9 bsr 0x.*0.* 0+02e : - 2e: e7e8 bt 0x0 + 2e: e7e8 bt 0x.*0 0+030 : 30: 37b6 btsti r6, 27 @@ -148,7 +148,7 @@ Disassembly of section \.text: 5c: 150f ixw r15, r0 0+05e : - 5e: efd0 bf 0x0 + 5e: efd0 bf 0x.*0 0+060 : 60: f00e br 0x7e @@ -202,10 +202,10 @@ Disassembly of section \.text: 80: 048e loopt r8, 0x64 0+082 : - 82: 7903 lrw r9, (0x86|0x0 // from address pool at 0x90) + 82: 7901 lrw r9, 0x3C0C1BBA 0+084 : - 84: 7904 lrw r9, 0x4321 + 84: 7903 lrw r9, 0x4321 0+086 : 86: 1234 mov r4, r3 @@ -218,184 +218,181 @@ Disassembly of section \.text: 8c: 0000 bkpt 8c: ADDR32 \.text 8e: 0000 bkpt - 90: (0000 bkpt|0086 dect r6) - 90: ADDR32 \.text(\+0x86)? + 90: 4321 \.short 0x4321 92: 0000 bkpt - 94: 4321 \.short 0x4321 - 96: 0000 bkpt -0+098 : - 98: 3dfd lsli r13, 31 +0+094 : + 94: 3dfd lsli r13, 31 -0+09a : - 9a: 0bfe lsr r14, r15 +0+096 : + 96: 0bfe lsr r14, r15 -0+09c : - 9c: 3e00 lsrc r0 +0+098 : + 98: 3e00 lsrc r0 -0+09e : - 9e: 3e11 lsri r1, 1 +0+09a : + 9a: 3e11 lsri r1, 1 -0+0a0 : - a0: 3064 bclri r4, 6 +0+09c : + 9c: 3064 bclri r4, 6 -0+0a2 : - a2: 1002 mfcr r2, psr +0+09e : + 9e: 1002 mfcr r2, psr -0+0a4 : - a4: 1243 mov r3, r4 +0+0a0 : + a0: 1243 mov r3, r4 -0+0a6 : - a6: 0a65 movf r5, r6 +0+0a2 : + a2: 0a65 movf r5, r6 -0+0a8 : - a8: 67f7 movi r7, 127 +0+0a4 : + a4: 67f7 movi r7, 127 -0+0aa : - aa: 0298 movt r8, r9 +0+0a6 : + a6: 0298 movt r8, r9 -0+0ac : - ac: 180a mtcr r10, psr +0+0a8 : + a8: 180a mtcr r10, psr -0+0ae : - ae: 03cb mult r11, r12 +0+0aa : + aa: 03cb mult r11, r12 -0+0b0 : - b0: 002d mvc r13 +0+0ac : + ac: 002d mvc r13 -0+0b2 : - b2: 003e mvcv r14 +0+0ae : + ae: 003e mvcv r14 -0+0b4 : - b4: 2802 rsubi r2, 0 +0+0b0 : + b0: 2802 rsubi r2, 0 -0+0b6 : - b6: 01ff not r15 +0+0b2 : + b2: 01ff not r15 -0+0b8 : - b8: 1e10 or r0, r1 +0+0b4 : + b4: 1e10 or r0, r1 -0+0ba : - ba: 0003 rfi +0+0b6 : + b6: 0003 rfi -0+0bc : - bc: 0666 addc r6, r6 +0+0b8 : + b8: 0666 addc r6, r6 -0+0be : - be: 39a9 rotli r9, 26 +0+0ba : + ba: 39a9 rotli r9, 26 -0+0c0 : - c0: 0666 addc r6, r6 +0+0bc : + bc: 0666 addc r6, r6 -0+0c2 : - c2: 38a2 rotli r2, 10 +0+0be : + be: 38a2 rotli r2, 10 -0+0c4 : - c4: 39a9 rotli r9, 26 +0+0c0 : + c0: 39a9 rotli r9, 26 -0+0c6 : - c6: 1443 rsub r3, r4 +0+0c2 : + c2: 1443 rsub r3, r4 -0+0c8 : - c8: 2805 rsubi r5, 0 +0+0c4 : + c4: 2805 rsubi r5, 0 -0+0ca : - ca: 0002 rte +0+0c6 : + c6: 0002 rte -0+0cc : - cc: 00cf jmp r15 +0+0c8 : + c8: 00cf jmp r15 -0+0ce : - ce: 0c00 cmphs r0, r0 +0+0ca : + ca: 0c00 cmphs r0, r0 -0+0d0 : - d0: 0156 sextb r6 +0+0cc : + cc: 0156 sextb r6 -0+0d2 : - d2: 0177 sexth r7 +0+0ce : + ce: 0177 sexth r7 -0+0d4 : - d4: b809 stb r8, \(r9, 0\) +0+0d0 : + d0: b809 stb r8, \(r9, 0\) -0+0d6 : - d6: da1b sth r10, \(r11, 2\) +0+0d2 : + d2: da1b sth r10, \(r11, 2\) -0+0d8 : - d8: 9c1d st r12, \(r13, 4\) +0+0d4 : + d4: 9c1d st r12, \(r13, 4\) -0+0da : - da: beff stb r14, \(r15, 15\) +0+0d6 : + d6: beff stb r14, \(r15, 15\) -0+0dc : - dc: d0f1 sth r0, \(r1, 30\) +0+0d8 : + d8: d0f1 sth r0, \(r1, 30\) -0+0de : - de: 92f3 st r2, \(r3, 60\) +0+0da : + da: 92f3 st r2, \(r3, 60\) -0+0e0 : - e0: 9405 st r4, \(r5, 0\) +0+0dc : + dc: 9405 st r4, \(r5, 0\) -0+0e2 : - e2: 007e stm r14-r15, \(r0\) +0+0de : + de: 007e stm r14-r15, \(r0\) -0+0e4 : - e4: 0004 stop +0+0e0 : + e0: 0004 stop -0+0e6 : - e6: 0051 stq r4-r7, \(r1\) +0+0e2 : + e2: 0051 stq r4-r7, \(r1\) -0+0e8 : - e8: 07d7 subc r7, r13 +0+0e4 : + e4: 07d7 subc r7, r13 -0+0ea : - ea: 25fe subi r14, 32 +0+0e6 : + e6: 25fe subi r14, 32 -0+0ec : - ec: 0539 subu r9, r3 +0+0e8 : + e8: 0539 subu r9, r3 -0+0ee : - ee: 0001 sync +0+0ea : + ea: 0001 sync -0+0f0 : - f0: 37f5 btsti r5, 31 +0+0ec : + ec: 37f5 btsti r5, 31 -0+0f2 : - f2: 2a07 cmpnei r7, 0 +0+0ee : + ee: 2a07 cmpnei r7, 0 -0+0f4 : - f4: 000a trap 2 +0+0f0 : + f0: 000a trap 2 -0+0f6 : - f6: 0eee tst r14, r14 +0+0f2 : + f2: 0eee tst r14, r14 -0+0f8 : - f8: 0192 tstnbz r2 +0+0f4 : + f4: 0192 tstnbz r2 -0+0fa : - fa: 0005 wait +0+0f6 : + f6: 0005 wait -0+0fc : - fc: 170f xor r15, r0 +0+0f8 : + f8: 170f xor r15, r0 -0+0fe : - fe: 380b xsr r11 +0+0fa : + fa: 380b xsr r11 -0+0100 : - 100: 0131 xtrb0 r1, r1 +0+0fc : + fc: 0131 xtrb0 r1, r1 -0+0102 : - 102: 0122 xtrb1 r1, r2 +0+0fe : + fe: 0122 xtrb1 r1, r2 -0+0104 : - 104: 0110 xtrb2 r1, r0 +0+0100 : + 100: 0110 xtrb2 r1, r0 -0+0106 : - 106: 010d xtrb3 r1, r13 +0+0102 : + 102: 010d xtrb3 r1, r13 -0+0108 : - 108: 0148 zextb r8 +0+0104 : + 104: 0148 zextb r8 -0+010a : - 10a: 0164 zexth r4 - 10c: 0f00 cmpne r0, r0 - 10e: 0f00 cmpne r0, r0 +0+0106 : + 106: 0164 zexth r4 + 108: 0f00 cmpne r0, r0 + 10a: 0f00 cmpne r0, r0 diff --git a/gas/testsuite/gas/mcore/allinsn.s b/gas/testsuite/gas/mcore/allinsn.s index 84068404e74..e9196e75075 100644 --- a/gas/testsuite/gas/mcore/allinsn.s +++ b/gas/testsuite/gas/mcore/allinsn.s @@ -13,11 +13,11 @@ footext: test addc "r1,r2" // A double forward slash starts a line comment test addi "r3, 1" # So does a hash test addu "r4, r5" // White space between operands should be ignored - test and "r6,r7" ; test andi "r8,#2" // A semicolon seperates statements + test and "r6,r7" ; test andi "r8,2" // A semicolon seperates statements test andn "r9, r10" test asr "r11, R12" // Uppercase R is allowed as a register prefix test asrc "r13" - test asri "r14,#0x1f" + test asri "r14,0x1f" test bclri "r15,0" test bf footext test bgeni "sp, 7" // r0 can also be refered to as 'sp' @@ -25,7 +25,7 @@ footext: test BGENi "r0, 31" // mnemonics should not be allowed, but we relax this... test bgenr "r1, r2" test bkpt - test bmaski "r3,#8" + test bmaski "r3,8" test BMASKI "r3,0x1f" test br . // Dot means the current address test brev r4 @@ -64,9 +64,9 @@ footext: test jsr r2 test jsri footext test ld.b "r3,(r4,0)" - test ld.h "r5 , ( r6, #2)" + test ld.h "r5 , ( r6, 2)" test ld.w "r7, (r8, 0x4)" - test ldb "r9,(r10,#0xf)" + test ldb "r9,(r10,0xf)" test ldh "r11, (r12, 30)" test ld "r13, (r14, 20)" test ldw "r13, (r14, 60)" @@ -104,7 +104,7 @@ foolit: test rolc "r6, 1" test rori "r9, 6" test rotlc "r6, 1" - test rotli "r2, #10" + test rotli "r2, 10" test rotri "r9, 6" test rsub "r3, r4" test rsubi "r5, 0x0"