diff options
author | Alex Coplan <alex.coplan@arm.com> | 2023-11-02 22:53:44 +0000 |
---|---|---|
committer | Alex Coplan <alex.coplan@arm.com> | 2023-12-15 19:59:59 +0000 |
commit | 94415eb7a464e855c37ab01ab300fa5e87e4c4a3 (patch) | |
tree | fdadf6ae295f5fd9d9c7220a04b59b7856f48ac7 /gcc/defaults.h | |
parent | 0bd6f7a7496a78832624713f3df64ad17fa0f841 (diff) | |
download | gcc-94415eb7a464e855c37ab01ab300fa5e87e4c4a3.zip gcc-94415eb7a464e855c37ab01ab300fa5e87e4c4a3.tar.gz gcc-94415eb7a464e855c37ab01ab300fa5e87e4c4a3.tar.bz2 |
aarch64: Fix up aarch64_print_operand xzr/wzr case
This adjusts aarch64_print_operand to recognize zero rtxes in modes other than
VOIDmode. This allows us to use xzr/wzr for zero vectors, for example.
We extract the test into a helper function, aarch64_const_zero_rtx_p, since this
predicate is needed by later patches.
gcc/ChangeLog:
* config/aarch64/aarch64-protos.h (aarch64_const_zero_rtx_p): New.
* config/aarch64/aarch64.cc (aarch64_const_zero_rtx_p): New.
Use it ...
(aarch64_print_operand): ... here. Recognize CONST0_RTXes in
modes other than VOIDmode.
Diffstat (limited to 'gcc/defaults.h')
0 files changed, 0 insertions, 0 deletions