]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix expand_single_bit_test for big-endian
authorAndrew Pinski <apinski@marvell.com>
Sun, 21 May 2023 04:01:46 +0000 (21:01 -0700)
committerAndrew Pinski <apinski@marvell.com>
Sun, 21 May 2023 04:06:28 +0000 (21:06 -0700)
commit7f3df8e65c71e5df01fe7fe7de577bb9ff48f37b
tree2b17d543cc4551681863fe0c95270ef399ba886d
parent660754a820465583df32a5f9601df7389c941920
Fix expand_single_bit_test for big-endian

I had thought extract_bit_field bitpos argument was the shifted position
and not the bitposition like BIT_FIELD_REF so I had removed the code which
would use the correct bitposition for BYTES_BIG_ENDIAN.

Committed as obvious; I checked big-endian MIPS to make sure we are now
producing the correct code.

gcc/ChangeLog:

* expr.cc (expand_single_bit_test): Correct bitpos for big-endian.
gcc/expr.cc