aboutsummaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorHaochen Gui <guihaoc@gcc.gnu.org>2023-12-27 10:30:06 +0800
committerHaochen Gui <guihaoc@gcc.gnu.org>2023-12-27 10:35:13 +0800
commit78bd9e25601a2b7162ad71f714861a05cf994488 (patch)
tree74c84fe92064d391dce0ae03f902f78e9592bba1 /libobjc
parentf2d47aa70ee4e72f7095a9f166cb45fc043f75cc (diff)
downloadgcc-78bd9e25601a2b7162ad71f714861a05cf994488.zip
gcc-78bd9e25601a2b7162ad71f714861a05cf994488.tar.gz
gcc-78bd9e25601a2b7162ad71f714861a05cf994488.tar.bz2
rs6000: Correct definition of macro of fixed point efficient unaligned
Marco TARGET_EFFICIENT_OVERLAPPING_UNALIGNED is used in rs6000-string.cc to guard the platform which is efficient on fixed point unaligned load/store. It's originally defined by TARGET_EFFICIENT_UNALIGNED_VSX which is enabled from P8 and can be disabled by mno-vsx option. So the definition is improper. This patch corrects it and call slow_unaligned_access to judge if fixed point unaligned load/store is efficient or not. gcc/ * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED): Remove. * config/rs6000/rs6000-string.cc (select_block_compare_mode): Replace TARGET_EFFICIENT_OVERLAPPING_UNALIGNED with targetm.slow_unaligned_access. (expand_block_compare_gpr): Likewise. (expand_block_compare): Likewise. (expand_strncmp_gpr_sequence): Likewise. gcc/testsuite/ * gcc.target/powerpc/block-cmp-1.c: New. * gcc.target/powerpc/block-cmp-2.c: New.
Diffstat (limited to 'libobjc')
0 files changed, 0 insertions, 0 deletions