]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix condition accepted by mov<GPF>cc
authorKarl Meakin <karl.meakin@arm.com>
Tue, 30 Sep 2025 12:05:00 +0000 (12:05 +0000)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 15 Nov 2025 05:15:53 +0000 (21:15 -0800)
commit7ddc204d331ea1637620c8f50abbe8034702ab43
tree3ce38a844676a2dd18a7a31f933cab5671a2e872
parent8d2e8dbf77655b73c874d7e00e2743777d1a8e74
aarch64: Fix condition accepted by mov<GPF>cc

Apply the same fix from bc11cbff9e648fdda2798bfa2d7151d5cd164b87
("aarch64: Fix condition accepted by mov<ALLI>cc") to `MOV<GPF>cc`.
Fixes ICEs when compiling code such as `cmpbr-4.c` and `cmpbr-5.c` with `+cmpbr`.

gcc/ChangeLog:

* config/aarch64/aarch64.md(mov<GPF>cc): Accept MODE_CC
conditions directly; reject QI/HImode conditions.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/cmpbr-4.c: New test.
* gcc.target/aarch64/cmpbr-5.c: New test.
gcc/config/aarch64/aarch64.md
gcc/testsuite/gcc.target/aarch64/cmpbr-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/cmpbr-5.c [new file with mode: 0644]