mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
[AArch64] AsmParser should be case insensitive about accepting vector register names.
Differential Revision: http://reviews.llvm.org/D10320 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4332f869bf
commit
1666977cd0
@ -1764,7 +1764,7 @@ static unsigned MatchRegisterName(StringRef Name);
|
||||
/// }
|
||||
|
||||
static unsigned matchVectorRegName(StringRef Name) {
|
||||
return StringSwitch<unsigned>(Name)
|
||||
return StringSwitch<unsigned>(Name.lower())
|
||||
.Case("v0", AArch64::Q0)
|
||||
.Case("v1", AArch64::Q1)
|
||||
.Case("v2", AArch64::Q2)
|
||||
|
8
test/MC/AArch64/case-insen-reg-names.s
Normal file
8
test/MC/AArch64/case-insen-reg-names.s
Normal 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]
|
Loading…
Reference in New Issue
Block a user