aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.cc
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@embecosm.com>2023-11-22 01:18:29 +0000
committerMaciej W. Rozycki <macro@embecosm.com>2023-11-22 01:18:29 +0000
commit7e126d8d0fbe5677070f02c32a1425849ce36298 (patch)
tree00f9a8c03422a594a5ab562d52b082dec322766d /gcc/fortran/options.cc
parent5e6903ddd39e058b9a8304a77765529d64819966 (diff)
downloadgcc-7e126d8d0fbe5677070f02c32a1425849ce36298.zip
gcc-7e126d8d0fbe5677070f02c32a1425849ce36298.tar.gz
gcc-7e126d8d0fbe5677070f02c32a1425849ce36298.tar.bz2
RISC-V: Only use SUBREG if applicable in `riscv_expand_float_scc'
A subsequent change to enable the processing of conditional moves on a floating-point condition by `riscv_expand_conditional_move' will cause `riscv_expand_float_scc' to be called for word-mode target RTX with RV64 targets. In that case an invalid insn such as: (insn 25 24 0 (set (reg:DI 141) (subreg:SI (reg:DI 143) 0)) -1 (nil)) would be produced, which would crash the compiler later on. Since the output operand of the SET operation to be produced already has the same mode as the input operand does, just omit the use of SUBREG and assign directly. gcc/ * config/riscv/riscv.cc (riscv_expand_float_scc): Suppress the use of SUBREG if the conditional-set target is word-mode.
Diffstat (limited to 'gcc/fortran/options.cc')
0 files changed, 0 insertions, 0 deletions