[binutils-gdb] aarch64: Make comparison to QLF_NIL more explicit
Alice Carlotti via Binutils-cvs <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e97333273584bd64de8b4b538173d679c163eee8 commit e97333273584bd64de8b4b538173d679c163eee8 Author: Alice Carlotti <[email protected]> Date: Thu May 7 06:54:28 2026 +0100 aarch64: Make comparison to QLF_NIL more explicit This removes the assumption that AARCH64_OPND_QLF_NIL is zero. Diff: --- opcodes/aarch64-opc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index cb6ccf44e75..9d2f98d8d14 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -6162,8 +6162,8 @@ verify_constraints (const struct aarch64_inst *inst, /* Now the only thing left is the qualifiers checks. The register must have the same maximum element size. */ - if (inst_dest.qualifier - && blk_dest.qualifier + if (inst_dest.qualifier != AARCH64_OPND_QLF_NIL + && blk_dest.qualifier != AARCH64_OPND_QLF_NIL && current_elem_size != aarch64_get_qualifier_esize (blk_dest.qualifier)) {