From 00df03dc4aa9090eb5222726393e8cade40cc168 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 8 Dec 2006 21:56:03 +0000 Subject: * gas/z8k/reglabel.d: New test. * gas/z8k/reglabel.s: New test. * gas/z8k/z8k.exp: Run new test. --- gas/testsuite/ChangeLog | 6 + gas/testsuite/gas/z8k/reglabel.d | 268 +++++++++++++++++++++++++++++++++++++++ gas/testsuite/gas/z8k/reglabel.s | 99 +++++++++++++++ gas/testsuite/gas/z8k/z8k.exp | 4 + 4 files changed, 377 insertions(+) create mode 100644 gas/testsuite/gas/z8k/reglabel.d create mode 100644 gas/testsuite/gas/z8k/reglabel.s (limited to 'gas') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 88fef261..fb37d77 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-12-08 Christian Groessler + + * gas/z8k/reglabel.d: New test. + * gas/z8k/reglabel.s: New test. + * gas/z8k/z8k.exp: Run new test. + 2006-12-06 H.J. Lu * gas/i386/amdfam10.d: Updated for operand/address-size override diff --git a/gas/testsuite/gas/z8k/reglabel.d b/gas/testsuite/gas/z8k/reglabel.d new file mode 100644 index 0000000..55ae0b6 --- /dev/null +++ b/gas/testsuite/gas/z8k/reglabel.d @@ -0,0 +1,268 @@ +#as: +#objdump: -d +#name: reglabel + +.*: +file format coff-z8k + +Disassembly of section \.text: + +00000000 : + 0: 7600 0000 lda r0,0x0 + +00000004 : + 4: 7600 0004 lda r0,0x4 + +00000008 : + 8: 7600 0008 lda r0,0x8 + +0000000c : + c: 7600 000c lda r0,0xc + +00000010 : + 10: 7600 0010 lda r0,0x10 + +00000014 : + 14: 7600 0014 lda r0,0x14 + +00000018 : + 18: 7600 0018 lda r0,0x18 + +0000001c : + 1c: 7600 001c lda r0,0x1c + +00000020 : + 20: 7600 0020 lda r0,0x20 + +00000024 : + 24: 7600 0024 lda r0,0x24 + +00000028 : + 28: 7600 0028 lda r0,0x28 + +0000002c : + 2c: 7600 002c lda r0,0x2c + +00000030 : + 30: 7600 0030 lda r0,0x30 + +00000034 : + 34: 7600 0034 lda r0,0x34 + +00000038 : + 38: 7600 0038 lda r0,0x38 + +0000003c : + 3c: 7600 003c lda r0,0x3c + +00000040 : + 40: 7600 0040 lda r0,0x40 + +00000044 : + 44: 7600 0044 lda r0,0x44 + +00000048 : + 48: 7600 0048 lda r0,0x48 + +0000004c : + 4c: 7600 004c lda r0,0x4c + +00000050 : + 50: 7600 0050 lda r0,0x50 + +00000054 : + 54: 7600 0054 lda r0,0x54 + +00000058 : + 58: 7600 0058 lda r0,0x58 + +0000005c : + 5c: 7600 005c lda r0,0x5c + +00000060 : + 60: 7600 0060 lda r0,0x60 + +00000064 : + 64: 7600 0064 lda r0,0x64 + +00000068 : + 68: 7600 0068 lda r0,0x68 + +0000006c : + 6c: 7600 006c lda r0,0x6c + +00000070 : + 70: 7600 0070 lda r0,0x70 + +00000074 : + 74: 7600 0074 lda r0,0x74 + +00000078 : + 78: 7600 0078 lda r0,0x78 + +0000007c : + 7c: 7600 007c lda r0,0x7c + +00000080 : + 80: 7600 0080 lda r0,0x80 + +00000084 : + 84: 7600 0084 lda r0,0x84 + +00000088 : + 88: 7600 0088 lda r0,0x88 + +0000008c : + 8c: 7600 008c lda r0,0x8c + +00000090 : + 90: 7600 0090 lda r0,0x90 + +00000094 : + 94: 7600 0094 lda r0,0x94 + +00000098 : + 98: 7600 0098 lda r0,0x98 + +0000009c : + 9c: 7600 009c lda r0,0x9c + +000000a0 : + a0: 7600 00a0 lda r0,0xa0 + +000000a4 : + a4: 7600 00a4 lda r0,0xa4 + +000000a8 : + a8: 7600 00a8 lda r0,0xa8 + +000000ac : + ac: 7600 00ac lda r0,0xac + +000000b0 : + b0: 7600 00b0 lda r0,0xb0 + +000000b4 : + b4: 7600 00b4 lda r0,0xb4 + +000000b8 : + b8: 7600 00b8 lda r0,0xb8 + +000000bc : + bc: 7600 00bc lda r0,0xbc + +000000c0 : + c0: 7600 00c0 lda r0,0xc0 + +000000c4 : + c4: 7600 00c4 lda r0,0xc4 + +000000c8 : + c8: 7600 00c8 lda r0,0xc8 + +000000cc : + cc: 7600 00cc lda r0,0xcc + +000000d0 : + d0: 7600 00d0 lda r0,0xd0 + +000000d4 : + d4: 7600 00d4 lda r0,0xd4 + +000000d8 : + d8: 7600 00d8 lda r0,0xd8 + +000000dc : + dc: 7600 00dc lda r0,0xdc + +000000e0 : + e0: 7600 00e0 lda r0,0xe0 + +000000e4 : + e4: 7600 00e4 lda r0,0xe4 + +000000e8 : + e8: 7600 00e8 lda r0,0xe8 + +000000ec : + ec: 7600 00ec lda r0,0xec + +000000f0 : + f0: 7600 00f0 lda r0,0xf0 + +000000f4 : + f4: 7600 00f4 lda r0,0xf4 + +000000f8 : + f8: 7600 00f8 lda r0,0xf8 + +000000fc : + fc: 7600 00fc lda r0,0xfc + +00000100 : + 100: 7600 0100 lda r0,0x100 + +00000104 : + 104: 7600 0104 lda r0,0x104 + +00000108 : + 108: 7600 0108 lda r0,0x108 + +0000010c : + 10c: 7600 010c lda r0,0x10c + +00000110 : + 110: 7600 0110 lda r0,0x110 + +00000114 : + 114: 7600 0114 lda r0,0x114 + +00000118 : + 118: 7600 0118 lda r0,0x118 + +0000011c : + 11c: 7600 011c lda r0,0x11c + +00000120 : + 120: 7600 0120 lda r0,0x120 + +00000124 : + 124: 7600 0124 lda r0,0x124 + +00000128 : + 128: 7600 0128 lda r0,0x128 + +0000012c : + 12c: 7600 012c lda r0,0x12c + +00000130 : + 130: 7600 0130 lda r0,0x130 + +00000134 : + 134: 7600 0134 lda r0,0x134 + +00000138 : + 138: 7600 0138 lda r0,0x138 + +0000013c : + 13c: 7600 013c lda r0,0x13c + +00000140 : + 140: 7600 0140 lda r0,0x140 + +00000144 : + 144: 7600 0144 lda r0,0x144 + +00000148 : + 148: 7600 0148 lda r0,0x148 + +0000014c : + 14c: 7600 014c lda r0,0x14c + +00000150 : + 150: 7600 0150 lda r0,0x150 + +00000154 : + 154: 7600 0154 lda r0,0x154 + +00000158 : + 158: 7600 0158 lda r0,0x158 diff --git a/gas/testsuite/gas/z8k/reglabel.s b/gas/testsuite/gas/z8k/reglabel.s new file mode 100644 index 0000000..b722b14 --- /dev/null +++ b/gas/testsuite/gas/z8k/reglabel.s @@ -0,0 +1,99 @@ +! labels starting with a valid register name + +.text + +sp_label: lda r0,sp_label + +r0_label: lda r0,r0_label +r1_label: lda r0,r1_label +r2_label: lda r0,r2_label +r3_label: lda r0,r3_label +r4_label: lda r0,r4_label +r5_label: lda r0,r5_label +r6_label: lda r0,r6_label +r7_label: lda r0,r7_label +r8_label: lda r0,r8_label +r9_label: lda r0,r9_label +r10_label: lda r0,r10_label +r11_label: lda r0,r11_label +r12_label: lda r0,r12_label +r13_label: lda r0,r13_label +r14_label: lda r0,r14_label +r15_label: lda r0,r15_label +r16_label: lda r0,r16_label ! not a valid register name anyway + +rr0_label: lda r0,rr0_label +rr1_label: lda r0,rr1_label ! not a valid register name anyway +rr2_label: lda r0,rr2_label +rr3_label: lda r0,rr3_label ! not a valid register name anyway +rr4_label: lda r0,rr4_label +rr5_label: lda r0,rr5_label ! not a valid register name anyway +rr6_label: lda r0,rr6_label +rr7_label: lda r0,rr7_label ! not a valid register name anyway +rr8_label: lda r0,rr8_label +rr9_label: lda r0,rr9_label ! not a valid register name anyway +rr10_label: lda r0,rr10_label +rr11_label: lda r0,rr11_label ! not a valid register name anyway +rr12_label: lda r0,rr12_label +rr13_label: lda r0,rr13_label ! not a valid register name anyway +rr14_label: lda r0,rr14_label +rr15_label: lda r0,rr15_label ! not a valid register name anyway +rr16_label: lda r0,rr16_label ! not a valid register name anyway + +rq0_label: lda r0,rq0_label +rq1_label: lda r0,rq1_label ! not a valid register name anyway +rq2_label: lda r0,rq2_label ! not a valid register name anyway +rq3_label: lda r0,rq3_label ! not a valid register name anyway +rq4_label: lda r0,rq4_label +rq5_label: lda r0,rq5_label ! not a valid register name anyway +rq6_label: lda r0,rq6_label ! not a valid register name anyway +rq7_label: lda r0,rq7_label ! not a valid register name anyway +rq8_label: lda r0,rq8_label +rq9_label: lda r0,rq9_label ! not a valid register name anyway +rq10_label: lda r0,rq10_label ! not a valid register name anyway +rq11_label: lda r0,rq11_label ! not a valid register name anyway +rq12_label: lda r0,rq12_label +rq13_label: lda r0,rq13_label ! not a valid register name anyway +rq14_label: lda r0,rq14_label ! not a valid register name anyway +rq15_label: lda r0,rq15_label ! not a valid register name anyway +rq16_label: lda r0,rq16_label ! not a valid register name anyway + + +rh0_label: lda r0,rh0_label +rh1_label: lda r0,rh1_label +rh2_label: lda r0,rh2_label +rh3_label: lda r0,rh3_label +rh4_label: lda r0,rh4_label +rh5_label: lda r0,rh5_label +rh6_label: lda r0,rh6_label +rh7_label: lda r0,rh7_label +rh8_label: lda r0,rh8_label ! not a valid register name anyway +rh9_label: lda r0,rh9_label ! not a valid register name anyway +rh10_label: lda r0,rh10_label ! not a valid register name anyway +rh11_label: lda r0,rh11_label ! not a valid register name anyway +rh12_label: lda r0,rh12_label ! not a valid register name anyway +rh13_label: lda r0,rh13_label ! not a valid register name anyway +rh14_label: lda r0,rh14_label ! not a valid register name anyway +rh15_label: lda r0,rh15_label ! not a valid register name anyway +rh16_label: lda r0,rh16_label ! not a valid register name anyway + +rl0_label: lda r0,rl0_label +rl1_label: lda r0,rl1_label +rl2_label: lda r0,rl2_label +rl3_label: lda r0,rl3_label +rl4_label: lda r0,rl4_label +rl5_label: lda r0,rl5_label +rl6_label: lda r0,rl6_label +rl7_label: lda r0,rl7_label +rl8_label: lda r0,rl8_label ! not a valid register name anyway +rl9_label: lda r0,rl9_label ! not a valid register name anyway +rl10_label: lda r0,rl10_label ! not a valid register name anyway +rl11_label: lda r0,rl11_label ! not a valid register name anyway +rl12_label: lda r0,rl12_label ! not a valid register name anyway +rl13_label: lda r0,rl13_label ! not a valid register name anyway +rl14_label: lda r0,rl14_label ! not a valid register name anyway +rl15_label: lda r0,rl15_label ! not a valid register name anyway +rl16_label: lda r0,rl16_label ! not a valid register name anyway + +r00_label: lda r0,r00_label ! not a valid register name anyway + diff --git a/gas/testsuite/gas/z8k/z8k.exp b/gas/testsuite/gas/z8k/z8k.exp index 60cbca5..3f96632 100644 --- a/gas/testsuite/gas/z8k/z8k.exp +++ b/gas/testsuite/gas/z8k/z8k.exp @@ -45,4 +45,8 @@ if [istarget z8k-*-*] then { # ctrl names test run_dump_test "ctrl-names" + +# labels starting with register names test + + run_dump_test "reglabel" } -- cgit v1.1