summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-30 11:19:40 +0000
committerTim Northover <tnorthover@apple.com>2014-04-30 11:19:40 +0000
commitebde5a5e49a662cd9191041306443b7116034c52 (patch)
tree7655f3051a9121e52f690f3a211ffa03f9f4e6ee /lib
parent87476b607cfcfa3db89a7c3d2e403e9246c9927d (diff)
downloadllvm-ebde5a5e49a662cd9191041306443b7116034c52.tar.gz
llvm-ebde5a5e49a662cd9191041306443b7116034c52.tar.bz2
llvm-ebde5a5e49a662cd9191041306443b7116034c52.tar.xz
ARM64: use hex immediates for movz/movk instructions
Since these are mostly used in "lsl #16", "lsl #32", "lsl #48" combinations to piece together an immediate in 16-bit chunks, hex is probably the most appropriate format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM64/ARM64InstrFormats.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM64/ARM64InstrFormats.td b/lib/Target/ARM64/ARM64InstrFormats.td
index f1d6f3d6bb..5f273aaba7 100644
--- a/lib/Target/ARM64/ARM64InstrFormats.td
+++ b/lib/Target/ARM64/ARM64InstrFormats.td
@@ -1275,6 +1275,7 @@ class ADRI<bit page, string asm, Operand adr, list<dag> pattern>
def movimm32_imm : Operand<i32> {
let ParserMatchClass = Imm0_65535Operand;
let EncoderMethod = "getMoveWideImmOpValue";
+ let PrintMethod = "printHexImm";
}
def movimm32_shift : Operand<i32> {
let PrintMethod = "printShifter";