diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-08-25 21:20:12 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-02-25 19:24:10 +0000 |
commit | 5051c12173713c81921ed133ef5a218e46ab11d1 (patch) | |
tree | 3c8be405ed95305a54d75728673d96b78dc85d91 | |
parent | 44ab1cc1df6ec4ff50210401acdcb26e80343541 (diff) | |
download | gcc-5051c12173713c81921ed133ef5a218e46ab11d1.zip gcc-5051c12173713c81921ed133ef5a218e46ab11d1.tar.gz gcc-5051c12173713c81921ed133ef5a218e46ab11d1.tar.bz2 |
aarch64 : Mark rotate immediates with '#' as per DDI0487iFc.
The armv8_arm manual [C6.2.226, ROR (immediate)] uses a # in front
of the immediate rotation quantity.
Although, it seems, GAS is able to infer the # (or is leninent about
its absence) assemblers based on the LLVM back end expect it.
gcc/ChangeLog:
* config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
mark in front of the immediate quantity.
(<optab>_rolsi3_uxtw): Likewise.
-rw-r--r-- | gcc/config/aarch64/aarch64.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index 65d00c4..b2abb5b 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -4429,7 +4429,7 @@ (match_operand:QI 2 "aarch64_shift_imm_<mode>" "n")) (match_operand:GPI 3 "register_operand" "r")))] "" - "<logical>\\t%<w>0, %<w>3, %<w>1, ror (<sizen> - %2)" + "<logical>\\t%<w>0, %<w>3, %<w>1, ror #(<sizen> - %2)" [(set_attr "type" "logic_shift_imm")] ) @@ -4454,7 +4454,7 @@ (match_operand:QI 2 "aarch64_shift_imm_si" "n")) (match_operand:SI 3 "register_operand" "r"))))] "" - "<logical>\\t%w0, %w3, %w1, ror (32 - %2)" + "<logical>\\t%w0, %w3, %w1, ror #(32 - %2)" [(set_attr "type" "logic_shift_imm")] ) |