]> 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:44:28 +0000 (18:44 +0000)
commitedad87c2693e3ab42f17c4d6d7b58116ccb6fc46
tree7ad9aa40e595ce253f2446d073d664d37e18d6dd
parent885f5c3d5763d46e02bd2f192765cb589b4c4fe4
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