]> git.ipfire.org Git - thirdparty/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:42:48 +0000 (18:42 +0000)
commit6916332f03136441cf13d8796b39a3af16e4aa3f
tree9b4145869d076aedb7e5381f8419395211c40c90
parent24b8b44ea3bc232f4fe8daf24900ccaca98e8280
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