mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
[ARM64] SXTW/UXTW are only valid aliases for 32-bit operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b5940c0c0
commit
7face75878
@ -96,7 +96,9 @@ void ARM64InstPrinter::printInst(const MCInst *MI, raw_ostream &O,
|
|||||||
AsmMnemonic = IsSigned ? "sxth" : "uxth";
|
AsmMnemonic = IsSigned ? "sxth" : "uxth";
|
||||||
break;
|
break;
|
||||||
case 31:
|
case 31:
|
||||||
AsmMnemonic = IsSigned ? "sxtw" : "uxtw";
|
// *xtw is only valid for 64-bit operations.
|
||||||
|
if (Opcode == ARM64::SBFMXri || Opcode == ARM64::UBFMXri)
|
||||||
|
AsmMnemonic = IsSigned ? "sxtw" : "uxtw";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,3 +15,7 @@
|
|||||||
0x1f 0x00 0x00 0x11
|
0x1f 0x00 0x00 0x11
|
||||||
|
|
||||||
# CHECK: mov wsp, w0
|
# CHECK: mov wsp, w0
|
||||||
|
|
||||||
|
0x00 0x7c 0x00 0x13
|
||||||
|
|
||||||
|
# CHECK: asr w0, w0, #0
|
||||||
|
Loading…
Reference in New Issue
Block a user