diff options
author | Jiufu Guo <guojiufu@linux.ibm.com> | 2023-08-24 09:08:34 +0800 |
---|---|---|
committer | guojiufu <guojiufu@linux.ibm.com> | 2023-10-08 10:17:08 +0800 |
commit | 25b91754ed459c295bd3979fbbce4f1010483e5d (patch) | |
tree | db6d9aa5cccbb4a46fcd2b24921fb74b3d218997 /gcc/gcc.cc | |
parent | e067e894d62150b3ab4baca4653b4267fd7e0dc1 (diff) | |
download | gcc-25b91754ed459c295bd3979fbbce4f1010483e5d.zip gcc-25b91754ed459c295bd3979fbbce4f1010483e5d.tar.gz gcc-25b91754ed459c295bd3979fbbce4f1010483e5d.tar.bz2 |
rs6000: build constant via li;rotldi
If a constant is possible to be rotated to/from a positive or negative
value which "li" can generated, then "li;rotldi" can be used to build
the constant.
gcc/ChangeLog:
* config/rs6000/rs6000.cc (can_be_built_by_li_and_rotldi): New function.
(rs6000_emit_set_long_const): Call can_be_built_by_li_and_rotldi.
gcc/testsuite/ChangeLog:
* gcc.target/powerpc/const-build.c: New test.
Diffstat (limited to 'gcc/gcc.cc')
0 files changed, 0 insertions, 0 deletions