]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PPC: drop redundant value conversion from md_assemble()
authorJan Beulich <jbeulich@suse.com>
Thu, 19 Dec 2024 09:39:08 +0000 (10:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Dec 2024 09:39:08 +0000 (10:39 +0100)
Just ahead of the enclosing OBJ_ELF conditional the exact same
conversion was already carried out, with "val" not further changed in
between.

gas/config/tc-ppc.c

index 07e0f936d0bb3dbf377da4f54c6ec55be56d335f..2b65d1808b5473a027718f33f88480f757c28e98 100644 (file)
@@ -3516,13 +3516,6 @@ md_assemble (char *str)
          char *orig_str = str;
          bfd_reloc_code_real_type reloc = ppc_elf_suffix (&str, &ex);
 
-         if (ex.X_op == O_constant)
-           {
-             val = ex.X_add_number;
-             if (sizeof (ex.X_add_number) < sizeof (val)
-                 && (ex.X_add_number < 0) != ex.X_extrabit)
-               val = val ^ ((addressT) -1 ^ (uint64_t) -1);
-           }
          if (reloc != BFD_RELOC_NONE)
            switch (reloc)
              {