llvm.org GIT mirror llvm / 286540b
[ARM][Asm] Accept upper case coprocessor number and registers Differential revision: https://reviews.llvm.org/D59760 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356984 91177308-0d34-0410-b5e6-96231b3b80d8 Oliver Stannard 1 year, 4 months ago
3 changed file(s) with 60 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
36603660 if (Tok.isNot(AsmToken::Identifier))
36613661 return MatchOperand_NoMatch;
36623662
3663 int Num = MatchCoprocessorOperandName(Tok.getString(), 'p');
3663 int Num = MatchCoprocessorOperandName(Tok.getString().lower(), 'p');
36643664 if (Num == -1)
36653665 return MatchOperand_NoMatch;
36663666 // ARMv7 and v8 don't allow cp10/cp11 due to VFP/NEON specific instructions
36833683 if (Tok.isNot(AsmToken::Identifier))
36843684 return MatchOperand_NoMatch;
36853685
3686 int Reg = MatchCoprocessorOperandName(Tok.getString(), 'c');
3686 int Reg = MatchCoprocessorOperandName(Tok.getString().lower(), 'c');
36873687 if (Reg == -1)
36883688 return MatchOperand_NoMatch;
36893689
12431243 @------------------------------------------------------------------------------
12441244 mcr p7, #1, r5, c1, c1, #4
12451245 mcr2 p7, #1, r5, c1, c1, #4
1246 MCR P7, #1, R5, C1, C1, #4
1247 MCR2 P7, #1, R5, C1, C1, #4
12461248
12471249 @ CHECK: mcr p7, #1, r5, c1, c1, #4 @ encoding: [0x91,0x57,0x21,0xee]
12481250 @ CHECK: mcr2 p7, #1, r5, c1, c1, #4 @ encoding: [0x91,0x57,0x21,0xfe]
1251 @ CHECK: mcr p7, #1, r5, c1, c1, #4 @ encoding: [0x91,0x57,0x21,0xee]
1252 @ CHECK: mcr2 p7, #1, r5, c1, c1, #4 @ encoding: [0x91,0x57,0x21,0xfe]
12491253
12501254 mcrls p7, #1, r5, c1, c1, #4
1255 MCRLS P7, #1, R5, C1, C1, #4
1256 @ CHECK: mcrls p7, #1, r5, c1, c1, #4 @ encoding: [0x91,0x57,0x21,0x9e]
12511257 @ CHECK: mcrls p7, #1, r5, c1, c1, #4 @ encoding: [0x91,0x57,0x21,0x9e]
12521258
12531259 @------------------------------------------------------------------------------
12551261 @------------------------------------------------------------------------------
12561262 mcrr p7, #15, r5, r4, c1
12571263 mcrr2 p7, #15, r5, r4, c1
1264 MCRR P7, #15, R5, R4, C1
1265 MCRR2 P7, #15, R5, R4, C1
12581266
12591267 @ CHECK: mcrr p7, #15, r5, r4, c1 @ encoding: [0xf1,0x57,0x44,0xec]
12601268 @ CHECK: mcrr2 p7, #15, r5, r4, c1 @ encoding: [0xf1,0x57,0x44,0xfc]
1269 @ CHECK: mcrr p7, #15, r5, r4, c1 @ encoding: [0xf1,0x57,0x44,0xec]
1270 @ CHECK: mcrr2 p7, #15, r5, r4, c1 @ encoding: [0xf1,0x57,0x44,0xfc]
12611271
12621272 mcrrgt p7, #15, r5, r4, c1
1273 MCRRGT P7, #15, R5, R4, C1
1274 @ CHECK: mcrrgt p7, #15, r5, r4, c1 @ encoding: [0xf1,0x57,0x44,0xcc]
12631275 @ CHECK: mcrrgt p7, #15, r5, r4, c1 @ encoding: [0xf1,0x57,0x44,0xcc]
12641276
12651277 @------------------------------------------------------------------------------
13841396 mrc p15, #7, apsr_nzcv, c15, c6, #6
13851397 mrc2 p14, #0, r1, c1, c2, #4
13861398 mrc2 p9, #7, apsr_nzcv, c15, c0, #1
1399 MRC P14, #0, R1, C1, C2, #4
1400 MRC P15, #7, APSR_NZCV, C15, C6, #6
1401 MRC2 P14, #0, R1, C1, C2, #4
1402 MRC2 P9, #7, APSR_NZCV, C15, C0, #1
13871403
13881404 @ CHECK: mrc p14, #0, r1, c1, c2, #4 @ encoding: [0x92,0x1e,0x11,0xee]
13891405 @ CHECK: mrc p15, #7, apsr_nzcv, c15, c6, #6 @ encoding: [0xd6,0xff,0xff,0xee]
13901406 @ CHECK: mrc2 p14, #0, r1, c1, c2, #4 @ encoding: [0x92,0x1e,0x11,0xfe]
13911407 @ CHECK: mrc2 p9, #7, apsr_nzcv, c15, c0, #1 @ encoding: [0x30,0xf9,0xff,0xfe]
1408 @ CHECK: mrc p14, #0, r1, c1, c2, #4 @ encoding: [0x92,0x1e,0x11,0xee]
1409 @ CHECK: mrc p15, #7, apsr_nzcv, c15, c6, #6 @ encoding: [0xd6,0xff,0xff,0xee]
1410 @ CHECK: mrc2 p14, #0, r1, c1, c2, #4 @ encoding: [0x92,0x1e,0x11,0xfe]
1411 @ CHECK: mrc2 p9, #7, apsr_nzcv, c15, c0, #1 @ encoding: [0x30,0xf9,0xff,0xfe]
13921412
13931413 mrceq p15, #7, apsr_nzcv, c15, c6, #6
1414 MRCEQ P15, #7, APSR_NZCV, C15, C6, #6
1415 @ CHECK: mrceq p15, #7, apsr_nzcv, c15, c6, #6 @ encoding: [0xd6,0xff,0xff,0x0e]
13941416 @ CHECK: mrceq p15, #7, apsr_nzcv, c15, c6, #6 @ encoding: [0xd6,0xff,0xff,0x0e]
13951417
13961418 @------------------------------------------------------------------------------
13981420 @------------------------------------------------------------------------------
13991421 mrrc p7, #1, r5, r4, c1
14001422 mrrc2 p7, #1, r5, r4, c1
1423 MRRC P7, #1, R5, R4, C1
1424 MRRC2 P7, #1, R5, R4, C1
14011425
14021426 @ CHECK: mrrc p7, #1, r5, r4, c1 @ encoding: [0x11,0x57,0x54,0xec]
14031427 @ CHECK: mrrc2 p7, #1, r5, r4, c1 @ encoding: [0x11,0x57,0x54,0xfc]
1428 @ CHECK: mrrc p7, #1, r5, r4, c1 @ encoding: [0x11,0x57,0x54,0xec]
1429 @ CHECK: mrrc2 p7, #1, r5, r4, c1 @ encoding: [0x11,0x57,0x54,0xfc]
14041430
14051431 mrrclo p7, #1, r5, r4, c1
1432 MRRCLO P7, #1, R5, R4, C1
1433 @ CHECK: mrrclo p7, #1, r5, r4, c1 @ encoding: [0x11,0x57,0x54,0x3c]
14061434 @ CHECK: mrrclo p7, #1, r5, r4, c1 @ encoding: [0x11,0x57,0x54,0x3c]
14071435
14081436 @------------------------------------------------------------------------------
14081408 mcr2 p7, #1, r5, c1, c1, #4
14091409 mcr p14, #0, r4, c0, c5
14101410 mcr2 p4, #2, r2, c1, c3
1411 MCR P7, #1, R5, C1, C1, #4
1412 MCR2 P7, #1, R5, C1, C1, #4
1413 MCR P14, #0, R4, C0, C5
1414 MCR2 P4, #2, R2, C1, C3
14111415
14121416 @ CHECK: mcr p7, #1, r5, c1, c1, #4 @ encoding: [0x21,0xee,0x91,0x57]
14131417 @ CHECK: mcr2 p7, #1, r5, c1, c1, #4 @ encoding: [0x21,0xfe,0x91,0x57]
14141418 @ CHECK: mcr p14, #0, r4, c0, c5, #0 @ encoding: [0x00,0xee,0x15,0x4e]
14151419 @ CHECK: mcr2 p4, #2, r2, c1, c3, #0 @ encoding: [0x41,0xfe,0x13,0x24]
1420 @ CHECK: mcr p7, #1, r5, c1, c1, #4 @ encoding: [0x21,0xee,0x91,0x57]
1421 @ CHECK: mcr2 p7, #1, r5, c1, c1, #4 @ encoding: [0x21,0xfe,0x91,0x57]
1422 @ CHECK: mcr p14, #0, r4, c0, c5, #0 @ encoding: [0x00,0xee,0x15,0x4e]
1423 @ CHECK: mcr2 p4, #2, r2, c1, c3, #0 @ encoding: [0x41,0xfe,0x13,0x24]
14161424
14171425
14181426 @------------------------------------------------------------------------------
14201428 @------------------------------------------------------------------------------
14211429 mcrr p7, #15, r5, r4, c1
14221430 mcrr2 p7, #15, r5, r4, c1
1423
1431 MCRR P7, #15, R5, R4, C1
1432 MCRR2 P7, #15, R5, R4, C1
1433
1434 @ CHECK: mcrr p7, #15, r5, r4, c1 @ encoding: [0x44,0xec,0xf1,0x57]
1435 @ CHECK: mcrr2 p7, #15, r5, r4, c1 @ encoding: [0x44,0xfc,0xf1,0x57]
14241436 @ CHECK: mcrr p7, #15, r5, r4, c1 @ encoding: [0x44,0xec,0xf1,0x57]
14251437 @ CHECK: mcrr2 p7, #15, r5, r4, c1 @ encoding: [0x44,0xfc,0xf1,0x57]
14261438
15701582 mrc2 p12, #3, r3, c3, c4
15711583 mrc2 p14, #0, r1, c1, c2, #4
15721584 mrc2 p8, #7, apsr_nzcv, c15, c0, #1
1585 MRC P14, #0, R1, C1, C2, #4
1586 MRC P15, #7, APSR_NZCV, C15, C6, #6
1587 MRC P9, #1, R1, C2, C2
1588 MRC2 P12, #3, R3, C3, C4
1589 MRC2 P14, #0, R1, C1, C2, #4
1590 MRC2 P8, #7, APSR_NZCV, C15, C0, #1
15731591
15741592 @ CHECK: mrc p14, #0, r1, c1, c2, #4 @ encoding: [0x11,0xee,0x92,0x1e]
15751593 @ CHECK: mrc p15, #7, apsr_nzcv, c15, c6, #6 @ encoding: [0xff,0xee,0xd6,0xff]
15771595 @ CHECK: mrc2 p12, #3, r3, c3, c4, #0 @ encoding: [0x73,0xfe,0x14,0x3c]
15781596 @ CHECK: mrc2 p14, #0, r1, c1, c2, #4 @ encoding: [0x11,0xfe,0x92,0x1e]
15791597 @ CHECK: mrc2 p8, #7, apsr_nzcv, c15, c0, #1 @ encoding: [0xff,0xfe,0x30,0xf8]
1598 @ CHECK: mrc p14, #0, r1, c1, c2, #4 @ encoding: [0x11,0xee,0x92,0x1e]
1599 @ CHECK: mrc p15, #7, apsr_nzcv, c15, c6, #6 @ encoding: [0xff,0xee,0xd6,0xff]
1600 @ CHECK: mrc p9, #1, r1, c2, c2, #0 @ encoding: [0x32,0xee,0x12,0x19]
1601 @ CHECK: mrc2 p12, #3, r3, c3, c4, #0 @ encoding: [0x73,0xfe,0x14,0x3c]
1602 @ CHECK: mrc2 p14, #0, r1, c1, c2, #4 @ encoding: [0x11,0xfe,0x92,0x1e]
1603 @ CHECK: mrc2 p8, #7, apsr_nzcv, c15, c0, #1 @ encoding: [0xff,0xfe,0x30,0xf8]
15801604
15811605 @------------------------------------------------------------------------------
15821606 @ MRRC/MRRC2
15831607 @------------------------------------------------------------------------------
15841608 mrrc p7, #1, r5, r4, c1
15851609 mrrc2 p7, #1, r5, r4, c1
1586
1610 MRRC P7, #1, R5, R4, C1
1611 MRRC2 P7, #1, R5, R4, C1
1612
1613 @ CHECK: mrrc p7, #1, r5, r4, c1 @ encoding: [0x54,0xec,0x11,0x57]
1614 @ CHECK: mrrc2 p7, #1, r5, r4, c1 @ encoding: [0x54,0xfc,0x11,0x57]
15871615 @ CHECK: mrrc p7, #1, r5, r4, c1 @ encoding: [0x54,0xec,0x11,0x57]
15881616 @ CHECK: mrrc2 p7, #1, r5, r4, c1 @ encoding: [0x54,0xfc,0x11,0x57]
15891617