[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:
Bradley Smith 2014-04-09 14:44:22 +00:00
parent 7b5940c0c0
commit 7face75878
2 changed files with 7 additions and 1 deletions

View File

@ -96,7 +96,9 @@ void ARM64InstPrinter::printInst(const MCInst *MI, raw_ostream &O,
AsmMnemonic = IsSigned ? "sxth" : "uxth";
break;
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;
}

View File

@ -15,3 +15,7 @@
0x1f 0x00 0x00 0x11
# CHECK: mov wsp, w0
0x00 0x7c 0x00 0x13
# CHECK: asr w0, w0, #0