[binutils-gdb] aarch64: Make comparison to QLF_NIL more explicit

Alice Carlotti acarlotti@sourceware.org
Fri May 15 14:08:37 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e97333273584bd64de8b4b538173d679c163eee8

commit e97333273584bd64de8b4b538173d679c163eee8
Author: Alice Carlotti <alice.carlotti@arm.com>
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))
 	    {


More information about the Binutils-cvs mailing list