As explained in PR64796, code for bswap64 effective target computes the answer once and then cache. However the result depends on the flags passed to the compiler and with --target_board it's possible to test several sets of flags. Besides, this code assume only lp64 targets can do 64-bit bswap when all 32-bit targets also can by virtue of expand_doubleword_bswap () called in expand_unop (). This patch solve both problems by removing the caching of the result and changing the condition to include all target with 32-bit or more wordsize.
ChangeLog entry is as follows:
**** gcc/testsuite/ChangeLog ***
2015-01-27 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.