llvm.org GIT mirror llvm / ac4c4a8
ARM: Make .unreq directives case-insensitive Be case-insensitive when processing .unreq directives. Patch by Lin Zuojian! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203251 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 5 years ago
2 changed file(s) with 21 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
82548254 Error(L, "unexpected input in .unreq directive.");
82558255 return false;
82568256 }
8257 RegisterReqs.erase(Parser.getTok().getIdentifier());
8257 RegisterReqs.erase(Parser.getTok().getIdentifier().lower());
82588258 Parser.Lex(); // Eat the identifier.
82598259 return false;
82608260 }
0 @ RUN: llvm-mc -triple=arm < %s | FileCheck %s
1 .syntax unified
2 _foo:
3
4 OBJECT .req r2
5 mov r4, OBJECT
6 mov r4, oBjEcT
7 .unreq oBJECT
8
9 _foo2:
10 OBJECT .req r5
11 mov r4, OBJECT
12 .unreq OBJECT
13
14 @ CHECK-LABEL: _foo:
15 @ CHECK: mov r4, r2
16 @ CHECK: mov r4, r2
17
18 @ CHECK-LABEL: _foo2:
19 @ CHECK: mov r4, r5