]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: Make comparison to QLF_NIL more explicit
authorAlice Carlotti <alice.carlotti@arm.com>
Thu, 7 May 2026 05:54:28 +0000 (06:54 +0100)
committerAlice Carlotti <alice.carlotti@arm.com>
Fri, 15 May 2026 14:07:17 +0000 (15:07 +0100)
This removes the assumption that AARCH64_OPND_QLF_NIL is zero.

opcodes/aarch64-opc.c

index cb6ccf44e750d1b6e64149bd83929fddddf264a7..9d2f98d8d1428ed0d45c28222a4212db87ba9b75 100644 (file)
@@ -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))
            {