diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-06 17:46:43 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-06 17:46:43 +0000 |
commit | ba3f483641abab52507320e897e2ee14142dcf23 (patch) | |
tree | d8af7efcfeb5df9202f6e27f772379a603672490 /gcc/testsuite/gcc.target/mips/mips.exp | |
parent | c7b9ebbf1b8e71227e9e8645829a1aeb55b664da (diff) | |
download | gcc-ba3f483641abab52507320e897e2ee14142dcf23.tar.gz |
gcc/
PR target/33256
* config/mips/mips.c (mips_classify_symbolic_expression): New function.
(mips_classify_address): Use it instead of mips_symbolic_constant_p.
(print_operand_reloc): Likewise.
gcc/testsuite/
200x-xx-xx David Daney <ddaney@avtrex.com>
Richard Sandiford <richard@codesourcery.com>
PR target/33256
* gcc.target/mips/mips.exp (setup_mips_tests): Set mips_forced_le.
(dg-mips-options): Skip -EB and -meb tests when $mips_forced_le.
* gcc.target/mips/pr33256.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/mips.exp')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/mips.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index 6a11b2d6e66..e498430b947 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -37,6 +37,7 @@ load_lib gcc-dg.exp # $mips_forced_isa: true if the command line uses -march=* or -mips* # $mips_forced_abi: true if the command line uses -mabi=* or -mgp* # $mips_forced_float: true if the command line uses -mhard/soft-float +# $mips_forced_le true if the command line uses -EL or -mel proc setup_mips_tests {} { global mips_isa global mips_arch @@ -47,6 +48,7 @@ proc setup_mips_tests {} { global mips_forced_isa global mips_forced_abi global mips_forced_float + global mips_forced_le global compiler_flags global tool @@ -81,6 +83,7 @@ proc setup_mips_tests {} { set mips_forced_isa [regexp -- {(-mips|-march)} $compiler_flags] set mips_forced_abi [regexp -- {(-mgp|-mfp|-mabi)} $compiler_flags] set mips_forced_float [regexp -- {-m(hard|soft)-float} $compiler_flags] + set mips_forced_le [regexp -- {-(EL|mel)[[:>:]]} $compiler_flags] } # Return true if command-line option FLAG forces 32-bit code. @@ -117,6 +120,10 @@ proc is_gp32_flag {flag} { # -mhard-float # Select the given floating-point mode. Skip the test if the # multilib flags force a different selection. +# +# -EB +# Select big-endian code. Skip the test if the multilib flags +# force a little-endian target. proc dg-mips-options {args} { upvar dg-extra-tool-flags extra_tool_flags upvar dg-do-what do_what @@ -130,6 +137,7 @@ proc dg-mips-options {args} { global mips_forced_isa global mips_forced_abi global mips_forced_float + global mips_forced_le set flags [lindex $args 1] set matches 1 @@ -175,6 +183,10 @@ proc dg-mips-options {args} { if {$mips_float != $float && $mips_forced_float} { set matches 0 } + } elseif {[regexp -- {^-(EB|meb)$} $flag]} { + if {$mips_forced_le} { + set matches 0 + } } } if {$matches} { |