mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-28 08:16:05 +00:00
ARM: Make .unreq directives case-insensitive
Be case-insensitive when processing .unreq directives. Patch by Lin Zuojian! llvm-svn: 203251
This commit is contained in:
parent
f500830867
commit
a9db25cef0
@ -8255,7 +8255,7 @@ bool ARMAsmParser::parseDirectiveUnreq(SMLoc L) {
|
||||
Error(L, "unexpected input in .unreq directive.");
|
||||
return false;
|
||||
}
|
||||
RegisterReqs.erase(Parser.getTok().getIdentifier());
|
||||
RegisterReqs.erase(Parser.getTok().getIdentifier().lower());
|
||||
Parser.Lex(); // Eat the identifier.
|
||||
return false;
|
||||
}
|
||||
|
20
test/MC/ARM/dot-req-case-insensitive.s
Normal file
20
test/MC/ARM/dot-req-case-insensitive.s
Normal file
@ -0,0 +1,20 @@
|
||||
@ RUN: llvm-mc -triple=arm < %s | FileCheck %s
|
||||
.syntax unified
|
||||
_foo:
|
||||
|
||||
OBJECT .req r2
|
||||
mov r4, OBJECT
|
||||
mov r4, oBjEcT
|
||||
.unreq oBJECT
|
||||
|
||||
_foo2:
|
||||
OBJECT .req r5
|
||||
mov r4, OBJECT
|
||||
.unreq OBJECT
|
||||
|
||||
@ CHECK-LABEL: _foo:
|
||||
@ CHECK: mov r4, r2
|
||||
@ CHECK: mov r4, r2
|
||||
|
||||
@ CHECK-LABEL: _foo2:
|
||||
@ CHECK: mov r4, r5
|
Loading…
x
Reference in New Issue
Block a user