diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-04-27 17:50:53 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-04-27 17:52:19 +0200 |
commit | 1c0c371d0ea297af2e3180c64cd18f2bfce919b1 (patch) | |
tree | a1269e1fbb86dbdf1b13471ac585300712153100 /gcc/config | |
parent | c33db31d9ad96f6414460315c12b4b505fad5dd7 (diff) | |
download | gcc-1c0c371d0ea297af2e3180c64cd18f2bfce919b1.zip gcc-1c0c371d0ea297af2e3180c64cd18f2bfce919b1.tar.gz gcc-1c0c371d0ea297af2e3180c64cd18f2bfce919b1.tar.bz2 |
aarch64: Fix up last commit [PR100200]
Pedantically signed vs. unsigned mismatches in va_arg are only well defined
if the value can be represented in both signed and unsigned integer types.
2021-04-27 Jakub Jelinek <jakub@redhat.com>
PR target/100200
* config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
back to HOST_WIDE_INT.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index aa148ac..a863af1 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -10778,7 +10778,7 @@ aarch64_print_operand (FILE *f, rtx x, int code) } if (GET_MODE_CLASS (GET_MODE (x)) == MODE_VECTOR_INT) - asm_fprintf (f, "%wd", -UINTVAL (elt)); + asm_fprintf (f, "%wd", (HOST_WIDE_INT) -UINTVAL (elt)); else if (GET_MODE_CLASS (GET_MODE (x)) == MODE_VECTOR_FLOAT && aarch64_print_vector_float_operand (f, x, true)) ; |