diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-v850')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-v850/split-lo16.d | 26 | ||||
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-v850/split-lo16.ld | 11 | ||||
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-v850/split-lo16.s | 20 | ||||
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-v850/v850.exp | 21 |
4 files changed, 78 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-v850/split-lo16.d b/binutils-2.21/ld/testsuite/ld-v850/split-lo16.d new file mode 100644 index 0000000..fbc325c --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-v850/split-lo16.d @@ -0,0 +1,26 @@ +#source: split-lo16.s -mv850e +#ld: -Tsplit-lo16.ld +#objdump: -d +#... +00010000 <.*>: + 10000: 40 0e 34 12 movhi 4660, r0, r1 + 10004: 01 16 78 56 addi 22136, r1, r2 + 10008: 81 17 79 56 ld\.bu 22136\[r1\], r2 + 1000c: 40 0e 36 12 movhi 4662, r0, r1 + 10010: 01 16 78 d8 addi -10120, r1, r2 + 10014: 81 17 79 d8 ld\.bu -10120\[r1\], r2 + 10018: 40 0e 12 00 movhi 18, r0, r1 + 1001c: 81 17 57 34 ld\.bu 13398\[r1\], r2 + 10020: 01 16 56 34 addi 13398, r1, r2 + 10024: 40 0e 14 00 movhi 20, r0, r1 + 10028: 81 17 57 b6 ld\.bu -18858\[r1\], r2 + 1002c: 01 16 56 b6 addi -18858, r1, r2 + 10030: 40 0e 79 56 movhi 22137, r0, r1 + 10034: 01 16 bc 9a addi -25924, r1, r2 + 10038: 81 17 bd 9a ld\.bu -25924\[r1\], r2 + 1003c: 40 0e 9b 78 movhi 30875, r0, r1 + 10040: 81 17 df bc ld\.bu -17186\[r1\], r2 + 10044: 01 16 de bc addi -17186, r1, r2 + 10048: 40 0e 45 23 movhi 9029, r0, r1 + 1004c: a1 17 89 67 ld\.bu 26505\[r1\], r2 +#pass diff --git a/binutils-2.21/ld/testsuite/ld-v850/split-lo16.ld b/binutils-2.21/ld/testsuite/ld-v850/split-lo16.ld new file mode 100644 index 0000000..bde9063 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-v850/split-lo16.ld @@ -0,0 +1,11 @@ +SECTIONS +{ + lo16_carry = 0x56789abc; + lo16_nocarry = 0x12345678; + split_lo16_carry = 0x789abcde; + split_lo16_nocarry = 0x00123456; + odd = 0x23456789; + . = 0x10000; + .text : { *(.text); } + /DISCARD/ : { *(*); } +} diff --git a/binutils-2.21/ld/testsuite/ld-v850/split-lo16.s b/binutils-2.21/ld/testsuite/ld-v850/split-lo16.s new file mode 100644 index 0000000..7eaae41 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-v850/split-lo16.s @@ -0,0 +1,20 @@ + movhi hi(lo16_nocarry),r0,r1 + addi lo(lo16_nocarry),r1,r2 + ld.bu lo(lo16_nocarry)[r1],r2 + movhi hi(lo16_nocarry + 0x18200),r0,r1 + addi lo(lo16_nocarry + 0x18200),r1,r2 + ld.bu lo(lo16_nocarry + 0x18200)[r1],r2 + movhi hi(split_lo16_nocarry),r0,r1 + ld.bu lo(split_lo16_nocarry)[r1],r2 + addi lo(split_lo16_nocarry),r1,r2 + movhi hi(split_lo16_nocarry + 0x18200),r0,r1 + ld.bu lo(split_lo16_nocarry + 0x18200)[r1],r2 + addi lo(split_lo16_nocarry + 0x18200),r1,r2 + movhi hi(lo16_carry),r0,r1 + addi lo(lo16_carry),r1,r2 + ld.bu lo(lo16_carry)[r1],r2 + movhi hi(split_lo16_carry),r0,r1 + ld.bu lo(split_lo16_carry)[r1],r2 + addi lo(split_lo16_carry),r1,r2 + movhi hi(odd),r0,r1 + ld.bu lo(odd)[r1],r2 diff --git a/binutils-2.21/ld/testsuite/ld-v850/v850.exp b/binutils-2.21/ld/testsuite/ld-v850/v850.exp new file mode 100644 index 0000000..2a2f9ae --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-v850/v850.exp @@ -0,0 +1,21 @@ +# Copyright 2007 Free Software Foundtaion, Inc. +# This file is part of the GNU Binutils. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +if [istarget v850*-*-*] { + run_dump_test "split-lo16" +} |