[PATCH 06/23] aarch64: Make comparison to QLF_NIL more explicit

Alice Carlotti alice.carlotti@arm.com
Thu May 7 16:10:05 GMT 2026


This removes the assumption that AARCH64_OPND_QLF_NIL is zero.


diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c
index cb6ccf44e750d1b6e64149bd83929fddddf264a7..9d2f98d8d1428ed0d45c28222a4212db87ba9b75 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))
 	    {


More information about the Binutils mailing list