mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
invalid-LDR_PRE-arm.txt was already passing, but for the wrong reasons. We were failing to specify enough fixed bits of LDR_PRE/LDRB_PRE, resulting in decoding conflicts. Separate them into immediate vs. register versions, allowing us to specify the necessary fixed bits. This in turn results in the test being decoded properly, and being rejected as UNPREDICTABLE rather than a hard failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -764,7 +764,7 @@ static unsigned getPreIndexedLoadStoreOpcode(unsigned Opc,
|
||||
ARM_AM::AddrOpc Mode) {
|
||||
switch (Opc) {
|
||||
case ARM::LDRi12:
|
||||
return ARM::LDR_PRE;
|
||||
return ARM::LDR_PRE_IMM;
|
||||
case ARM::STRi12:
|
||||
return ARM::STR_PRE_IMM;
|
||||
case ARM::VLDRS:
|
||||
|
Reference in New Issue
Block a user