On 12/2/20 4:08 PM, Ilya Leoshkevich wrote:
> Bootstrapped and regtested on s390x-redhat-linux.  Ok for master?
> 
> v1: https://gcc.gnu.org/pipermail/gcc-patches/2020-December/560822.html
> 
> v1 -> v2:
> - Use SYMBOL_REF_P.
> - Fix usage of gcc_assert.
> - Use GEN_INT.
> 
> 
> 
> Currently GCC loads large immediates into GPRs from the literal pool,
> which is not as efficient as loading two halves with llihf and oilf.
> 
> gcc/ChangeLog:
> 
> 2020-11-30  Ilya Leoshkevich  <i...@linux.ibm.com>
> 
>       * config/s390/s390-protos.h (s390_const_int_pool_entry_p): New
>       function.
>       * config/s390/s390.c (s390_const_int_pool_entry_p): New
>       function.
>       * config/s390/s390.md: Add define_peephole2 that produces llihf
>       and oilf.
> 
> gcc/testsuite/ChangeLog:
> 
> 2020-11-30  Ilya Leoshkevich  <i...@linux.ibm.com>
> 
>       * gcc.target/s390/load-imm64-1.c: New test.
>       * gcc.target/s390/load-imm64-2.c: New test.

Ok. Thanks!

Andreas

Reply via email to