diff options
author | Thiemo Seufer <ths@networkno.de> | 2006-05-19 22:48:13 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2006-05-19 22:48:13 +0000 |
commit | a284cff1e450d9d5ebe07d12859bc85686f6e1dd (patch) | |
tree | fc943d95480cce7d51b49bf774748a56d98c1882 /gas | |
parent | a1f5b8454cd3a0e8c1634b708ef8e2cfcecef2db (diff) | |
download | gdb-a284cff1e450d9d5ebe07d12859bc85686f6e1dd.zip gdb-a284cff1e450d9d5ebe07d12859bc85686f6e1dd.tar.gz gdb-a284cff1e450d9d5ebe07d12859bc85686f6e1dd.tar.bz2 |
* gas/mips/vxworks1-el.d, gas/mips/vxworks1-xgot-el.d: Add little
endian testcases.
* gas/mips/vxworks1.d, gas/mips/vxworks1-xgot.d: Build as big endian.
* gas/mips/mips.exp: Run new testcases.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/vxworks1-el.d | 72 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/vxworks1-xgot-el.d | 102 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/vxworks1-xgot.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/vxworks1.d | 2 |
6 files changed, 187 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2332821..a01d6b6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2006-05-19 Thiemo Seufer <ths@mips.com> + + * gas/mips/vxworks1-el.d, gas/mips/vxworks1-xgot-el.d: Add little + endian testcases. + * gas/mips/vxworks1.d, gas/mips/vxworks1-xgot.d: Build as big endian. + * gas/mips/mips.exp: Run new testcases. + 2006-05-14 Thiemo Seufer <ths@mips.com> Nigel Stephens <nigel@mips.com> diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index e275107..9f5e532 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -390,6 +390,8 @@ mips_arch_create sb1 64 mips64 { mips3d } \ if { [istarget mips*-*-vxworks*] } { run_dump_test "vxworks1" run_dump_test "vxworks1-xgot" + run_dump_test "vxworks1-el" + run_dump_test "vxworks1-xgot-el" } elseif { [istarget mips*-*-*] } { set no_mips16 0 set elf [expr [istarget *-*-elf*] || [istarget *-*-irix5*] || [istarget *-*-irix6* ] || [istarget *-*-linux*] || [istarget *-*-netbsd*] ] @@ -786,6 +788,8 @@ if { [istarget mips*-*-vxworks*] } { } run_dump_test "vxworks1" run_dump_test "vxworks1-xgot" + run_dump_test "vxworks1-el" + run_dump_test "vxworks1-xgot-el" run_dump_test "noreorder" } diff --git a/gas/testsuite/gas/mips/vxworks1-el.d b/gas/testsuite/gas/mips/vxworks1-el.d new file mode 100644 index 0000000..3db07e4 --- /dev/null +++ b/gas/testsuite/gas/mips/vxworks1-el.d @@ -0,0 +1,72 @@ +#as: -mips2 -mvxworks-pic -mabi=32 -EL +#source: vxworks1.s +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +00000000 <\.text>: +# +# la $4,local +# +.*: 8f840000 lw a0,0\(gp\) + .*: R_MIPS_GOT16 \.data +# +# la $4,global +# +.*: 8f840000 lw a0,0\(gp\) + .*: R_MIPS_GOT16 global +# +# lw $4,local +# +.*: 8f840000 lw a0,0\(gp\) + .*: R_MIPS_GOT16 \.data +.*: 8c840000 lw a0,0\(a0\) +# +# lw $4,global +# +.*: 8f840000 lw a0,0\(gp\) + .*: R_MIPS_GOT16 global +.*: 8c840000 lw a0,0\(a0\) +# +# sw $4,local +# +.*: 8f810000 lw at,0\(gp\) + .*: R_MIPS_GOT16 \.data +.*: ac240000 sw a0,0\(at\) +# +# sw $4,global +# +.*: 8f810000 lw at,0\(gp\) + .*: R_MIPS_GOT16 global +.*: ac240000 sw a0,0\(at\) +# +# ulw $4,local +# +.*: 8f810000 lw at,0\(gp\) + .*: R_MIPS_GOT16 \.data +.*: 88240003 lwl a0,3\(at\) +.*: 98240000 lwr a0,0\(at\) +# +# ulw $4,global +# +.*: 8f810000 lw at,0\(gp\) + .*: R_MIPS_GOT16 global +.*: 88240003 lwl a0,3\(at\) +.*: 98240000 lwr a0,0\(at\) +# +# usw $4,local +# +.*: 8f810000 lw at,0\(gp\) + .*: R_MIPS_GOT16 \.data +.*: a8240003 swl a0,3\(at\) +.*: b8240000 swr a0,0\(at\) +# +# usw $4,global +# +.*: 8f810000 lw at,0\(gp\) + .*: R_MIPS_GOT16 global +.*: a8240003 swl a0,3\(at\) +.*: b8240000 swr a0,0\(at\) + \.\.\. diff --git a/gas/testsuite/gas/mips/vxworks1-xgot-el.d b/gas/testsuite/gas/mips/vxworks1-xgot-el.d new file mode 100644 index 0000000..c48d804 --- /dev/null +++ b/gas/testsuite/gas/mips/vxworks1-xgot-el.d @@ -0,0 +1,102 @@ +#as: -mips2 -mvxworks-pic -xgot -mabi=32 -EL +#source: vxworks1.s +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +00000000 <\.text>: +# +# la $4,local +# +.*: 3c040000 lui a0,0x0 + .*: R_MIPS_GOT_HI16 \.data +.*: 009c2021 addu a0,a0,gp +.*: 8c840000 lw a0,0\(a0\) + .*: R_MIPS_GOT_LO16 \.data +# +# la $4,global +# +.*: 3c040000 lui a0,0x0 + .*: R_MIPS_GOT_HI16 global +.*: 009c2021 addu a0,a0,gp +.*: 8c840000 lw a0,0\(a0\) + .*: R_MIPS_GOT_LO16 global +# +# lw $4,local +# +.*: 3c040000 lui a0,0x0 + .*: R_MIPS_GOT_HI16 \.data +.*: 009c2021 addu a0,a0,gp +.*: 8c840000 lw a0,0\(a0\) + .*: R_MIPS_GOT_LO16 \.data +.*: 8c840000 lw a0,0\(a0\) +# +# lw $4,global +# +.*: 3c040000 lui a0,0x0 + .*: R_MIPS_GOT_HI16 global +.*: 009c2021 addu a0,a0,gp +.*: 8c840000 lw a0,0\(a0\) + .*: R_MIPS_GOT_LO16 global +.*: 8c840000 lw a0,0\(a0\) +# +# sw $4,local +# +.*: 3c010000 lui at,0x0 + .*: R_MIPS_GOT_HI16 \.data +.*: 003c0821 addu at,at,gp +.*: 8c210000 lw at,0\(at\) + .*: R_MIPS_GOT_LO16 \.data +.*: ac240000 sw a0,0\(at\) +# +# sw $4,global +# +.*: 3c010000 lui at,0x0 + .*: R_MIPS_GOT_HI16 global +.*: 003c0821 addu at,at,gp +.*: 8c210000 lw at,0\(at\) + .*: R_MIPS_GOT_LO16 global +.*: ac240000 sw a0,0\(at\) +# +# ulw $4,local +# +.*: 3c010000 lui at,0x0 + .*: R_MIPS_GOT_HI16 \.data +.*: 003c0821 addu at,at,gp +.*: 8c210000 lw at,0\(at\) + .*: R_MIPS_GOT_LO16 \.data +.*: 88240003 lwl a0,3\(at\) +.*: 98240000 lwr a0,0\(at\) +# +# ulw $4,global +# +.*: 3c010000 lui at,0x0 + .*: R_MIPS_GOT_HI16 global +.*: 003c0821 addu at,at,gp +.*: 8c210000 lw at,0\(at\) + .*: R_MIPS_GOT_LO16 global +.*: 88240003 lwl a0,3\(at\) +.*: 98240000 lwr a0,0\(at\) +# +# usw $4,local +# +.*: 3c010000 lui at,0x0 + .*: R_MIPS_GOT_HI16 \.data +.*: 003c0821 addu at,at,gp +.*: 8c210000 lw at,0\(at\) + .*: R_MIPS_GOT_LO16 \.data +.*: a8240003 swl a0,3\(at\) +.*: b8240000 swr a0,0\(at\) +# +# usw $4,global +# +.*: 3c010000 lui at,0x0 + .*: R_MIPS_GOT_HI16 global +.*: 003c0821 addu at,at,gp +.*: 8c210000 lw at,0\(at\) + .*: R_MIPS_GOT_LO16 global +.*: a8240003 swl a0,3\(at\) +.*: b8240000 swr a0,0\(at\) + \.\.\. diff --git a/gas/testsuite/gas/mips/vxworks1-xgot.d b/gas/testsuite/gas/mips/vxworks1-xgot.d index 5737a57..660b34e 100644 --- a/gas/testsuite/gas/mips/vxworks1-xgot.d +++ b/gas/testsuite/gas/mips/vxworks1-xgot.d @@ -1,4 +1,4 @@ -#as: -mips2 -mvxworks-pic -xgot -mabi=32 +#as: -mips2 -mvxworks-pic -xgot -mabi=32 -EB #source: vxworks1.s #objdump: -dr diff --git a/gas/testsuite/gas/mips/vxworks1.d b/gas/testsuite/gas/mips/vxworks1.d index 2ca762e..86d64b4 100644 --- a/gas/testsuite/gas/mips/vxworks1.d +++ b/gas/testsuite/gas/mips/vxworks1.d @@ -1,4 +1,4 @@ -#as: -mips2 -mvxworks-pic -mabi=32 +#as: -mips2 -mvxworks-pic -mabi=32 -EB #objdump: -dr .*: file format .* |