From ebde5a5e49a662cd9191041306443b7116034c52 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 30 Apr 2014 11:19:40 +0000 Subject: 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 --- lib/Target/ARM64/ARM64InstrFormats.td | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 pattern> def movimm32_imm : Operand { let ParserMatchClass = Imm0_65535Operand; let EncoderMethod = "getMoveWideImmOpValue"; + let PrintMethod = "printHexImm"; } def movimm32_shift : Operand { let PrintMethod = "printShifter"; -- cgit v1.2.3