1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[AArch64] AsmParser should be case insensitive about accepting vector register names.

Differential Revision: http://reviews.llvm.org/D10320

llvm-svn: 239353
This commit is contained in:
Ranjeet Singh 2015-06-08 21:32:16 +00:00
parent 154ce9f3df
commit 89463edae6
2 changed files with 9 additions and 1 deletions

View File

@ -1764,7 +1764,7 @@ static unsigned MatchRegisterName(StringRef Name);
/// } /// }
static unsigned matchVectorRegName(StringRef Name) { static unsigned matchVectorRegName(StringRef Name) {
return StringSwitch<unsigned>(Name) return StringSwitch<unsigned>(Name.lower())
.Case("v0", AArch64::Q0) .Case("v0", AArch64::Q0)
.Case("v1", AArch64::Q1) .Case("v1", AArch64::Q1)
.Case("v2", AArch64::Q2) .Case("v2", AArch64::Q2)

View File

@ -0,0 +1,8 @@
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding < %s | FileCheck %s
fadd v0.2d, v5.2d, v6.2d
fadd V0.2d, V5.2d, V6.2d
fadd v0.2d, V5.2d, v6.2d
// CHECK: fadd v0.2d, v5.2d, v6.2d // encoding: [0xa0,0xd4,0x66,0x4e]
// CHECK: fadd v0.2d, v5.2d, v6.2d // encoding: [0xa0,0xd4,0x66,0x4e]
// CHECK: fadd v0.2d, v5.2d, v6.2d // encoding: [0xa0,0xd4,0x66,0x4e]