diff options
author | Nick Clifton <nickc@redhat.com> | 2002-11-15 11:18:49 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-11-15 11:18:49 +0000 |
commit | e514ac71cb3fa3b772e19dd7ab2024a0f00b5bc2 (patch) | |
tree | 26cd8cb5b77ab128e5461b806ddaf6b40f21a2dc /ld/testsuite/ld-h8300/relax.d | |
parent | eddc4f813f72608685e5e301d0980bbc60d7f653 (diff) | |
download | gdb-e514ac71cb3fa3b772e19dd7ab2024a0f00b5bc2.zip gdb-e514ac71cb3fa3b772e19dd7ab2024a0f00b5bc2.tar.gz gdb-e514ac71cb3fa3b772e19dd7ab2024a0f00b5bc2.tar.bz2 |
Fix h8300 relaxation.
Diffstat (limited to 'ld/testsuite/ld-h8300/relax.d')
-rw-r--r-- | ld/testsuite/ld-h8300/relax.d | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-h8300/relax.d b/ld/testsuite/ld-h8300/relax.d new file mode 100644 index 0000000..a5672a5 --- /dev/null +++ b/ld/testsuite/ld-h8300/relax.d @@ -0,0 +1,21 @@ +# name: H8300 Relxation Test +# ld: --relax +# objdump: -d --no-show-raw-insn + +# Based on the test case reported by Kazu Hirata: +# http://sources.redhat.com/ml/binutils/2002-11/msg00301.html + +.*: file format .*-h8300 + +Disassembly of section .text: + +00000100 <_start>: + 100: 0d 00 mov.w r0,r0 + 102: 47 02 beq .+2 \(106\) + 104: 55 02 bsr .+2 \(108\) + +00000106 <.L1>: + 106: 54 70 rts + +00000108 <_bar>: + 108: 54 70 rts |