diff options
author | Maciej W. Rozycki <macro@embecosm.com> | 2023-11-22 01:18:31 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@embecosm.com> | 2023-11-22 01:18:31 +0000 |
commit | 6300e672c86236720952227bc4fd6a6dc4eeb55a (patch) | |
tree | b6786eeb2fb079382310d93bb9ce9870c5207203 /gcc/expr.cc | |
parent | 23207facbbe6da8659608b3d69544a608152a415 (diff) | |
download | gcc-6300e672c86236720952227bc4fd6a6dc4eeb55a.zip gcc-6300e672c86236720952227bc4fd6a6dc4eeb55a.tar.gz gcc-6300e672c86236720952227bc4fd6a6dc4eeb55a.tar.bz2 |
RISC-V/testsuite: Add branchless cases for FP NE cond-add operation
Verify, for the generic floating-point NE conditional-add operation,
that if-conversion triggers via `noce_try_addcc' at `-mbranch-cost=3'
setting, which makes branchless code sequences emitted by if-conversion
cheaper than their original branched equivalents, and that extraneous
instructions such as SNEZ, etc. are not present in output.
The reason to XFAIL the SImode test for RV64 targets is GCC thinks it
has to sign-extend addends, which causes if-conversion to give up.
gcc/testsuite/
* gcc.target/riscv/adddifne.c: New test.
* gcc.target/riscv/addsifne.c: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions