diff options
author | Nick Clifton <nickc@redhat.com> | 2001-05-02 18:14:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-05-02 18:14:31 +0000 |
commit | c7e4034828d7cb7e6c862cacd5b268c4e13035e1 (patch) | |
tree | a335c56efa6e2080699749cacb5b7bf2760bc60a /gas/testsuite | |
parent | d1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3 (diff) | |
download | gdb-c7e4034828d7cb7e6c862cacd5b268c4e13035e1.zip gdb-c7e4034828d7cb7e6c862cacd5b268c4e13035e1.tar.gz gdb-c7e4034828d7cb7e6c862cacd5b268c4e13035e1.tar.bz2 |
Add gas and ld support for openrisc
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/addi.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/addi.s | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/allinsn.d | 201 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/allinsn.exp | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/allinsn.s | 260 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/lohi.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/lohi.s | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/store.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/openrisc/store.s | 7 |
10 files changed, 535 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index bc4d1f1..d88b36d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2001-05-02 Johan Rydberg <jrydberg@opencores.org> + + * gas/openrisc/addi.s: New file. + * gas/openrisc/addi.d: Likewise. + * gas/openrisc/allinsn.exp: Likewise. + * gas/openrisc/allinsn.s: Likewise. + * gas/openrisc/allinsn.d: Likewise. + * gas/openrisc/lohi.s: Likewise. + * gas/openrisc/lohi.d: Likewise. + * gas/openrisc/store.s: Likewise. + * gas/openrisc/store.d: Likewise. + 2001-04-05 Hans-Peter Nilsson <hp@axis.com> * gas/cris/rd-dw2-1.d, gas/cris/rd-dw2-2.d, gas/cris/rd-dw2-3.d, diff --git a/gas/testsuite/gas/openrisc/addi.d b/gas/testsuite/gas/openrisc/addi.d new file mode 100644 index 0000000..50955d4 --- /dev/null +++ b/gas/testsuite/gas/openrisc/addi.d @@ -0,0 +1,10 @@ +#as: +#objdump: -dr +#name: addi + +.*: +file format .* + +Disassembly of section .text: + +00000000 <l_addi>: + 0: 94 22 ff ff l.addi r1,r2,-1 diff --git a/gas/testsuite/gas/openrisc/addi.s b/gas/testsuite/gas/openrisc/addi.s new file mode 100644 index 0000000..e460e64 --- /dev/null +++ b/gas/testsuite/gas/openrisc/addi.s @@ -0,0 +1,4 @@ + .text + .global l_addi +l_addi: + l.addi r1, r2, -1 diff --git a/gas/testsuite/gas/openrisc/allinsn.d b/gas/testsuite/gas/openrisc/allinsn.d new file mode 100644 index 0000000..e679739 --- /dev/null +++ b/gas/testsuite/gas/openrisc/allinsn.d @@ -0,0 +1,201 @@ +#as: +#objdump: -dr +#name: allinsn + +.*: +file format .* + +Disassembly of section .text: + +00000000 <l_j>: + 0: 00 00 00 00 l.j 0 <l_j> + 0: R_OPENRISC_INSN_ABS_26 .text + +00000004 <l_jal>: + 4: 04 00 00 00 l.jal 0 <l_j> + 4: R_OPENRISC_INSN_ABS_26 .text + +00000008 <l_jr>: + 8: 14 00 00 00 l.jr r0 + +0000000c <l_jalr>: + c: 14 20 00 00 l.jalr r0 + +00000010 <l_bal>: + 10: 0b ff ff fc l.bal 0 <l_j> + +00000014 <l_bnf>: + 14: 0f ff ff fb l.bnf 0 <l_j> + +00000018 <l_bf>: + 18: 13 ff ff fa l.bf 0 <l_j> + +0000001c <l_brk>: + 1c: 17 00 00 00 l.brk 0x0 + +00000020 <l_rfe>: + 20: 14 40 00 00 l.rfe r0 + +00000024 <l_sys>: + 24: 16 00 00 00 l.sys 0x0 + +00000028 <l_nop>: + 28: 15 00 00 00 l.nop + +0000002c <l_movhi>: + 2c: 18 00 00 00 l.movhi r0,0 + +00000030 <l_mfsr>: + 30: 1c 00 00 00 l.mfsr r0,r0 + +00000034 <l_mtsr>: + 34: 40 00 00 00 l.mtsr r0,r0 + +00000038 <l_lw>: + 38: 80 00 00 00 l.lw r0,0\(r0\) + +0000003c <l_lbz>: + 3c: 84 00 00 00 l.lbz r0,0\(r0\) + +00000040 <l_lbs>: + 40: 88 00 00 00 l.lbs r0,0\(r0\) + +00000044 <l_lhz>: + 44: 8c 00 00 00 l.lhz r0,0\(r0\) + +00000048 <l_lhs>: + 48: 90 00 00 00 l.lhs r0,0\(r0\) + +0000004c <l_sw>: + 4c: d4 00 00 00 l.sw 0\(r0\),r0 + +00000050 <l_sb>: + 50: d8 00 00 00 l.sb 0\(r0\),r0 + +00000054 <l_sh>: + 54: dc 00 00 00 l.sh 0\(r0\),r0 + +00000058 <l_sll>: + 58: e0 00 00 08 l.sll r0,r0,r0 + +0000005c <l_slli>: + 5c: b4 00 00 00 l.slli r0,r0,0x0 + +00000060 <l_srl>: + 60: e0 00 00 28 l.srl r0,r0,r0 + +00000064 <l_srli>: + 64: b4 00 00 20 l.srli r0,r0,0x0 + +00000068 <l_sra>: + 68: e0 00 00 48 l.sra r0,r0,r0 + +0000006c <l_srai>: + 6c: b4 00 00 40 l.srai r0,r0,0x0 + +00000070 <l_ror>: + 70: e0 00 00 88 l.ror r0,r0,r0 + +00000074 <l_rori>: + 74: b4 00 00 80 l.rori r0,r0,0x0 + +00000078 <l_add>: + 78: e0 00 00 00 l.add r0,r0,r0 + +0000007c <l_addi>: + 7c: 94 00 00 00 l.addi r0,r0,0 + +00000080 <l_sub>: + 80: e0 00 00 02 l.sub r0,r0,r0 + +00000084 <l_subi>: + 84: 9c 00 00 00 l.subi r0,r0,0 + +00000088 <l_and>: + 88: e0 00 00 03 l.and r0,r0,r0 + +0000008c <l_andi>: + 8c: a0 00 00 00 l.andi r0,r0,0 + +00000090 <l_or>: + 90: e0 00 00 04 l.or r0,r0,r0 + +00000094 <l_ori>: + 94: a4 00 00 00 l.ori r0,r0,0 + +00000098 <l_xor>: + 98: e0 00 00 05 l.xor r0,r0,r0 + +0000009c <l_xori>: + 9c: a8 00 00 00 l.xori r0,r0,0 + +000000a0 <l_mul>: + a0: e0 00 00 06 l.mul r0,r0,r0 + +000000a4 <l_muli>: + a4: ac 00 00 00 l.muli r0,r0,0 + +000000a8 <l_div>: + a8: e0 00 00 09 l.div r0,r0,r0 + +000000ac <l_divu>: + ac: e0 00 00 0a l.divu r0,r0,r0 + +000000b0 <l_sfgts>: + b0: e4 c0 00 00 l.sfgts r0,r0 + +000000b4 <l_sfgtu>: + b4: e4 40 00 00 l.sfgtu r0,r0 + +000000b8 <l_sfges>: + b8: e4 e0 00 00 l.sfges r0,r0 + +000000bc <l_sfgeu>: + bc: e4 60 00 00 l.sfgeu r0,r0 + +000000c0 <l_sflts>: + c0: e5 00 00 00 l.sflts r0,r0 + +000000c4 <l_sfltu>: + c4: e4 80 00 00 l.sfltu r0,r0 + +000000c8 <l_sfles>: + c8: e5 20 00 00 l.sfles r0,r0 + +000000cc <l_sfleu>: + cc: e4 a0 00 00 l.sfleu r0,r0 + +000000d0 <l_sfgtsi>: + d0: b8 c0 00 00 l.sfgtsi r0,0 + +000000d4 <l_sfgtui>: + d4: b8 40 00 00 l.sfgtui r0,0x0 + +000000d8 <l_sfgesi>: + d8: b8 e0 00 00 l.sfgesi r0,0 + +000000dc <l_sfgeui>: + dc: b8 60 00 00 l.sfgeui r0,0x0 + +000000e0 <l_sfltsi>: + e0: b9 00 00 00 l.sfltsi r0,0 + +000000e4 <l_sfltui>: + e4: b8 80 00 00 l.sfltui r0,0x0 + +000000e8 <l_sflesi>: + e8: b9 20 00 00 l.sflesi r0,0 + +000000ec <l_sfleui>: + ec: b8 a0 00 00 l.sfleui r0,0x0 + +000000f0 <l_sfeq>: + f0: e4 00 00 00 l.sfeq r0,r0 + +000000f4 <l_sfeqi>: + f4: b8 00 00 00 l.sfeqi r0,0 + +000000f8 <l_sfne>: + f8: e4 20 00 00 l.sfne r0,r0 + +000000fc <l_sfnei>: + fc: b8 20 00 00 l.sfnei r0,0 diff --git a/gas/testsuite/gas/openrisc/allinsn.exp b/gas/testsuite/gas/openrisc/allinsn.exp new file mode 100644 index 0000000..a3bb46b --- /dev/null +++ b/gas/testsuite/gas/openrisc/allinsn.exp @@ -0,0 +1,8 @@ +# OpenRISC assembler testsuite. + +if [istarget openrisc*-*-*] { + run_dump_test "allinsn" + run_dump_test "addi" + run_dump_test "lohi" + run_dump_test "store" +} diff --git a/gas/testsuite/gas/openrisc/allinsn.s b/gas/testsuite/gas/openrisc/allinsn.s new file mode 100644 index 0000000..f2d8841 --- /dev/null +++ b/gas/testsuite/gas/openrisc/allinsn.s @@ -0,0 +1,260 @@ + .data +foodata: .word 42 + .text +footext: + .text + .global l_j +l_j: + l.j footext + .text + .global l_jal +l_jal: + l.jal footext + .text + .global l_jr +l_jr: + l.jr r0 + .text + .global l_jalr +l_jalr: + l.jalr r0 + .text + .global l_bal +l_bal: + l.bal footext + .text + .global l_bnf +l_bnf: + l.bnf footext + .text + .global l_bf +l_bf: + l.bf footext + .text + .global l_brk +l_brk: + l.brk 0 + .text + .global l_rfe +l_rfe: + l.rfe r0 + .text + .global l_sys +l_sys: + l.sys 0 + .text + .global l_nop +l_nop: + l.nop + .text + .global l_movhi +l_movhi: + l.movhi r0,0 + .text + .global l_mfsr +l_mfsr: + l.mfsr r0,r0 + .text + .global l_mtsr +l_mtsr: + l.mtsr r0,r0 + .text + .global l_lw +l_lw: + l.lw r0,0(r0) + .text + .global l_lbz +l_lbz: + l.lbz r0,0(r0) + .text + .global l_lbs +l_lbs: + l.lbs r0,0(r0) + .text + .global l_lhz +l_lhz: + l.lhz r0,0(r0) + .text + .global l_lhs +l_lhs: + l.lhs r0,0(r0) + .text + .global l_sw +l_sw: + l.sw 0(r0),r0 + .text + .global l_sb +l_sb: + l.sb 0(r0),r0 + .text + .global l_sh +l_sh: + l.sh 0(r0),r0 + .text + .global l_sll +l_sll: + l.sll r0,r0,r0 + .text + .global l_slli +l_slli: + l.slli r0,r0,0 + .text + .global l_srl +l_srl: + l.srl r0,r0,r0 + .text + .global l_srli +l_srli: + l.srli r0,r0,0 + .text + .global l_sra +l_sra: + l.sra r0,r0,r0 + .text + .global l_srai +l_srai: + l.srai r0,r0,0 + .text + .global l_ror +l_ror: + l.ror r0,r0,r0 + .text + .global l_rori +l_rori: + l.rori r0,r0,0 + .text + .global l_add +l_add: + l.add r0,r0,r0 + .text + .global l_addi +l_addi: + l.addi r0,r0,0 + .text + .global l_sub +l_sub: + l.sub r0,r0,r0 + .text + .global l_subi +l_subi: + l.subi r0,r0,0 + .text + .global l_and +l_and: + l.and r0,r0,r0 + .text + .global l_andi +l_andi: + l.andi r0,r0,0 + .text + .global l_or +l_or: + l.or r0,r0,r0 + .text + .global l_ori +l_ori: + l.ori r0,r0,0 + .text + .global l_xor +l_xor: + l.xor r0,r0,r0 + .text + .global l_xori +l_xori: + l.xori r0,r0,0 + .text + .global l_mul +l_mul: + l.mul r0,r0,r0 + .text + .global l_muli +l_muli: + l.muli r0,r0,0 + .text + .global l_div +l_div: + l.div r0,r0,r0 + .text + .global l_divu +l_divu: + l.divu r0,r0,r0 + .text + .global l_sfgts +l_sfgts: + l.sfgts r0,r0 + .text + .global l_sfgtu +l_sfgtu: + l.sfgtu r0,r0 + .text + .global l_sfges +l_sfges: + l.sfges r0,r0 + .text + .global l_sfgeu +l_sfgeu: + l.sfgeu r0,r0 + .text + .global l_sflts +l_sflts: + l.sflts r0,r0 + .text + .global l_sfltu +l_sfltu: + l.sfltu r0,r0 + .text + .global l_sfles +l_sfles: + l.sfles r0,r0 + .text + .global l_sfleu +l_sfleu: + l.sfleu r0,r0 + .text + .global l_sfgtsi +l_sfgtsi: + l.sfgtsi r0,0 + .text + .global l_sfgtui +l_sfgtui: + l.sfgtui r0,0 + .text + .global l_sfgesi +l_sfgesi: + l.sfgesi r0,0 + .text + .global l_sfgeui +l_sfgeui: + l.sfgeui r0,0 + .text + .global l_sfltsi +l_sfltsi: + l.sfltsi r0,0 + .text + .global l_sfltui +l_sfltui: + l.sfltui r0,0 + .text + .global l_sflesi +l_sflesi: + l.sflesi r0,0 + .text + .global l_sfleui +l_sfleui: + l.sfleui r0,0 + .text + .global l_sfeq +l_sfeq: + l.sfeq r0,r0 + .text + .global l_sfeqi +l_sfeqi: + l.sfeqi r0,0 + .text + .global l_sfne +l_sfne: + l.sfne r0,r0 + .text + .global l_sfnei +l_sfnei: + l.sfnei r0,0 diff --git a/gas/testsuite/gas/openrisc/lohi.d b/gas/testsuite/gas/openrisc/lohi.d new file mode 100644 index 0000000..51a5a15 --- /dev/null +++ b/gas/testsuite/gas/openrisc/lohi.d @@ -0,0 +1,13 @@ +#as: +#objdump: -dr +#name: lohi + +.*: +file format .* + +Disassembly of section .text: + +00000000 <l_lo>: + 0: 94 21 be ef l.addi r1,r1,-16657 + +00000004 <l_hi>: + 4: 18 20 de ad l.movhi r1,-8531 diff --git a/gas/testsuite/gas/openrisc/lohi.s b/gas/testsuite/gas/openrisc/lohi.s new file mode 100644 index 0000000..bbed820 --- /dev/null +++ b/gas/testsuite/gas/openrisc/lohi.s @@ -0,0 +1,7 @@ + .text + .global l_lo +l_lo: + l.addi r1, r1, lo(0xdeadbeef) + .global l_hi +l_hi: + l.movhi r1, hi(0xdeadbeef) diff --git a/gas/testsuite/gas/openrisc/store.d b/gas/testsuite/gas/openrisc/store.d new file mode 100644 index 0000000..15591eb --- /dev/null +++ b/gas/testsuite/gas/openrisc/store.d @@ -0,0 +1,13 @@ +#as: +#objdump: -dr +#name: store + +.*: +file format .* + +Disassembly of section .text: + +00000000 <l_sw>: + 0: d7 e1 0f fc l.sw -4\(r1\),r1 + +00000004 <l_lw>: + 4: 80 21 ff 9c l.lw r1,-100\(r1\) diff --git a/gas/testsuite/gas/openrisc/store.s b/gas/testsuite/gas/openrisc/store.s new file mode 100644 index 0000000..ef96460 --- /dev/null +++ b/gas/testsuite/gas/openrisc/store.s @@ -0,0 +1,7 @@ + .text + .global l_sw +l_sw: + l.sw -4(r1), r1 + .global l_lw +l_lw: + l.lw r1, -100(r1) |