llvm.org GIT mirror llvm / 07c3e15
ARM: rGPR is meant to be unpredictable, not undefined git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184706 91177308-0d34-0410-b5e6-96231b3b80d8 Amaury de la Vieuville 7 years ago
3 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
915915
916916 static DecodeStatus DecoderGPRRegisterClass(MCInst &Inst, unsigned RegNo,
917917 uint64_t Address, const void *Decoder) {
918 if (RegNo == 13 || RegNo == 15) return MCDisassembler::Fail;
919 return DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder);
918 DecodeStatus S = MCDisassembler::Success;
919 if (RegNo == 13 || RegNo == 15)
920 S = MCDisassembler::SoftFail;
921 Check(S, DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder));
922 return S;
920923 }
921924
922925 static const uint16_t SPRDecoderTable[] = {
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "potentially undefined"
11
22 # Opcode=1930 Name=t2LDRD_PRE Format=ARM_FORMAT_THUMBFRM(25)
33 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
None # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "invalid instruction encoding"
1 # XFAIL: *
0 # RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 2>&1 | grep "potentially undefined"
21
32 # Opcode=2124 Name=t2STRD_PRE Format=ARM_FORMAT_THUMBFRM(25)
43 # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0