From 35cadc58c94733a3d2508710c9cc9a52575e3967 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Wed, 9 Apr 2014 14:41:49 +0000 Subject: [PATCH] [ARM64] STRHro and STRBro were not being decoded at all. llvm-svn: 205860 --- llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp | 2 ++ llvm/test/MC/Disassembler/ARM64/memory.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp b/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp index 55267b064098..8e2fa8fee38d 100644 --- a/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp +++ b/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp @@ -1297,9 +1297,11 @@ static DecodeStatus DecodeRegOffsetLdStInstruction(llvm::MCInst &Inst, DecodeFPR32RegisterClass(Inst, Rt, Addr, Decoder); break; case ARM64::LDRHro: + case ARM64::STRHro: DecodeFPR16RegisterClass(Inst, Rt, Addr, Decoder); break; case ARM64::LDRBro: + case ARM64::STRBro: DecodeFPR8RegisterClass(Inst, Rt, Addr, Decoder); break; case ARM64::LDRBBro: diff --git a/llvm/test/MC/Disassembler/ARM64/memory.txt b/llvm/test/MC/Disassembler/ARM64/memory.txt index 031bfa69032c..d0371cfc69f8 100644 --- a/llvm/test/MC/Disassembler/ARM64/memory.txt +++ b/llvm/test/MC/Disassembler/ARM64/memory.txt @@ -416,11 +416,13 @@ # CHECK: ldr q1, [x1, x2] # CHECK: ldr q1, [x1, x2, lsl #4] + 0x00 0x48 0x20 0x7c 0xe1 0x6b 0x23 0xfc 0xe1 0x5b 0x23 0xfc 0xe1 0x6b 0xa3 0x3c 0xe1 0x5b 0xa3 0x3c +# CHECK: str h0, [x0, x0, uxtw] # CHECK: str d1, [sp, x3] # CHECK: str d1, [sp, x3, uxtw #3] # CHECK: str q1, [sp, x3]