]> git.ipfire.org Git - people/ms/gcc.git/commit
Fix addvdi3 and subvdi3 patterns
authorJohn David Anglin <danglin@gcc.gnu.org>
Wed, 30 Nov 2022 18:40:10 +0000 (18:40 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 30 Nov 2022 18:45:33 +0000 (18:45 +0000)
commit2391ea007f291b12c6602b7fd71bb92b7c945752
treec8faa76a5b463c15d73450377c02dc016e9e82e6
parentef70237843c7da4e45b0fe7c3cb81aceb9cd081e
Fix addvdi3 and subvdi3 patterns

While most PA 2.0 instructions support both 32 and 64-bit traps
and conditions, the addi and subi instructions only support 32-bit
traps and conditions. Thus, we need to force immediate operands
to register operands on the 64-bit target and use the add/sub
instructions which can trap on 64-bit signed overflow.

2022-11-30  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.md (addvdi3): Force operand 2 to a register.
Remove "addi,tsv,*" instruction from unamed pattern.
(subvdi3): Force operand 1 to a register.
Remove "subi,tsv" instruction from from unamed pattern.
gcc/config/pa/pa.md