Commit 6a5fd0f8 by Thomas Preud'homme Committed by Thomas Preud'homme

re PR testsuite/64796 (effective target bswap64 globally caches target-specific use of lp64)

2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    PR testsuite/64796
    * lib/target-supports.exp (check_effective_target_bswap64): Do not
    cache result in a global variable.  Include all 32-bit targets for
    bswap64 tests.

From-SVN: r220388
parent b70695c5
2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR testsuite/64796
* lib/target-supports.exp (check_effective_target_bswap64): Do not
cache result in a global variable. Include all 32-bit targets for
bswap64 tests.
2015-02-03 Jakub Jelinek <jakub@redhat.com> 2015-02-03 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/64756 PR rtl-optimization/64756
......
...@@ -5049,18 +5049,11 @@ proc check_effective_target_bswap32 { } { ...@@ -5049,18 +5049,11 @@ proc check_effective_target_bswap32 { } {
proc check_effective_target_bswap64 { } { proc check_effective_target_bswap64 { } {
global et_bswap64_saved global et_bswap64_saved
if [info exists et_bswap64_saved] { # expand_unop can expand 64-bit byte swap on 32-bit targets
verbose "check_effective_target_bswap64: using cached result" 2 if { [is-effective-target bswap] && [is-effective-target int32plus] } {
} else { return 1
set et_bswap64_saved 0
if { [is-effective-target bswap]
&& [is-effective-target lp64] } {
set et_bswap64_saved 1
}
} }
return 0
verbose "check_effective_target_bswap64: returning $et_bswap64_saved" 2
return $et_bswap64_saved
} }
# Return 1 if the target supports atomic operations on "int" and "long". # Return 1 if the target supports atomic operations on "int" and "long".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment