Fixes github.com/riscv/riscv-gcc issue #161. We were accidentally using BITS_PER_WORD to compute shift counts when we should have been using the bitsize of the operand modes. This was wrong when we had an SImode shift and a 64-bit target. Andrew Waterman <andrew@sifive.com> gcc/ * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1] bitsize instead of BITS_PER_WORD. gcc/testsuite/ * gcc.target/riscv/shift-shift-2.c: Add one more test. From-SVN: r273230
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
constraints.md | Loading commit data... | |
elf.h | Loading commit data... | |
freebsd.h | Loading commit data... | |
generic.md | Loading commit data... | |
linux.h | Loading commit data... | |
multilib-generator | Loading commit data... | |
peephole.md | Loading commit data... | |
pic.md | Loading commit data... | |
predicates.md | Loading commit data... | |
riscv-builtins.c | Loading commit data... | |
riscv-c.c | Loading commit data... | |
riscv-d.c | Loading commit data... | |
riscv-ftypes.def | Loading commit data... | |
riscv-modes.def | Loading commit data... | |
riscv-opts.h | Loading commit data... | |
riscv-protos.h | Loading commit data... | |
riscv.c | Loading commit data... | |
riscv.h | Loading commit data... | |
riscv.md | Loading commit data... | |
riscv.opt | Loading commit data... | |
rtems.h | Loading commit data... | |
sifive-7.md | Loading commit data... | |
sync.md | Loading commit data... | |
t-elf-multilib | Loading commit data... | |
t-linux | Loading commit data... | |
t-linux-multilib | Loading commit data... | |
t-riscv | Loading commit data... | |
t-rtems | Loading commit data... | |
t-withmultilib | Loading commit data... | |
withmultilib.h | Loading commit data... |