aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/class.c
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2020-05-30 17:04:17 -0700
committerJim Wilson <jimw@sifive.com>2020-05-30 17:09:15 -0700
commitd5cdcd5cf2b2920b44836005baceb59d046b6e5a (patch)
treebecb1148e911f52560dd5c0367cdd14be5e9c76b /gcc/fortran/class.c
parent9f2e635defba9d697a6c291013b37bd2c7ed91aa (diff)
downloadgcc-d5cdcd5cf2b2920b44836005baceb59d046b6e5a.zip
gcc-d5cdcd5cf2b2920b44836005baceb59d046b6e5a.tar.gz
gcc-d5cdcd5cf2b2920b44836005baceb59d046b6e5a.tar.bz2
RISC-V: Optimize si to di zero-extend followed by left shift.
This is potentially a sequence of 3 shifts, we which optimize to a sequence of 2 shifts. This can happen when unsigned int is used for array indexing. gcc/ * config/riscv/riscv.md (zero_extendsidi2_shifted): New. gcc/testsuite/ * gcc.target/riscv/zero-extend-5.c: New.
Diffstat (limited to 'gcc/fortran/class.c')
0 files changed, 0 insertions, 0 deletions