1@ RUN: llvm-mc -triple=armv7 < %s 2> %t | FileCheck --check-prefix=ACCEPT-01234567CD --check-prefix=ACCEPT-89 --check-prefix=ACCEPT-AB --check-prefix=ACCEPT-EF %s
2@ RUN: llvm-mc -triple=thumbv7 < %s 2> %t | FileCheck --check-prefix=ACCEPT-01234567CD --check-prefix=ACCEPT-89 --check-prefix=ACCEPT-AB --check-prefix=ACCEPT-EF %s
3@ RUN: not llvm-mc -triple=armv8 < %s 2> %t | FileCheck --check-prefix=ACCEPT-EF %s
4@ RUN: FileCheck --check-prefix=REJECT-01234567CD --check-prefix=REJECT-89 --check-prefix=REJECT-AB < %t %s
5@ RUN: not llvm-mc -triple=thumbv8 < %s 2> %t | FileCheck --check-prefix=ACCEPT-EF %s
6@ RUN: FileCheck --check-prefix=REJECT-01234567CD --check-prefix=REJECT-89 --check-prefix=REJECT-AB < %t %s
7@ RUN: not llvm-mc -triple=thumbv8.1m.main < %s 2> %t | FileCheck --check-prefix=ACCEPT-01234567CD --check-prefix=ACCEPT-AB %s
8@ RUN: FileCheck --check-prefix=REJECT-89 --check-prefix=REJECT-EF < %t %s
9
10mrc   p0, #1, r2, c3, c4, #5
11@ ACCEPT-01234567CD: mrc   p0, #1, r2, c3, c4, #5
12@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
13
14mrc   p1, #1, r2, c3, c4, #5
15@ ACCEPT-01234567CD: mrc   p1, #1, r2, c3, c4, #5
16@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
17
18mrc   p2, #1, r2, c3, c4, #5
19@ ACCEPT-01234567CD: mrc   p2, #1, r2, c3, c4, #5
20@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
21
22mrc   p3, #1, r2, c3, c4, #5
23@ ACCEPT-01234567CD: mrc   p3, #1, r2, c3, c4, #5
24@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
25
26mrc   p4, #1, r2, c3, c4, #5
27@ ACCEPT-01234567CD: mrc   p4, #1, r2, c3, c4, #5
28@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
29
30mrc   p5, #1, r2, c3, c4, #5
31@ ACCEPT-01234567CD: mrc   p5, #1, r2, c3, c4, #5
32@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
33
34mrc   p6, #1, r2, c3, c4, #5
35@ ACCEPT-01234567CD: mrc   p6, #1, r2, c3, c4, #5
36@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
37
38mrc   p7, #1, r2, c3, c4, #5
39@ ACCEPT-01234567CD: mrc   p7, #1, r2, c3, c4, #5
40@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
41
42mrc   p8, #1, r2, c3, c4, #5
43@ ACCEPT-89: mrc   p8, #1, r2, c3, c4, #5
44@ REJECT-89: [[@LINE-2]]:7: error: invalid operand for instruction
45
46mrc   p9, #1, r2, c3, c4, #5
47@ ACCEPT-89: mrc   p9, #1, r2, c3, c4, #5
48@ REJECT-89: [[@LINE-2]]:7: error: invalid operand for instruction
49
50mrc   p10, #1, r2, c3, c4, #5
51@ ACCEPT-AB: mrc   p10, #1, r2, c3, c4, #5
52@ REJECT-AB: [[@LINE-2]]:7: error: invalid operand for instruction
53
54mrc   p11, #1, r2, c3, c4, #5
55@ ACCEPT-AB: mrc   p11, #1, r2, c3, c4, #5
56@ REJECT-AB: [[@LINE-2]]:7: error: invalid operand for instruction
57
58mrc   p12, #1, r2, c3, c4, #5
59@ ACCEPT-01234567CD: mrc   p12, #1, r2, c3, c4, #5
60@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
61
62mrc   p13, #1, r2, c3, c4, #5
63@ ACCEPT-01234567CD: mrc   p13, #1, r2, c3, c4, #5
64@ REJECT-01234567CD: [[@LINE-2]]:7: error: invalid operand for instruction
65
66mrc   p14, #1, r2, c3, c4, #5
67@ ACCEPT-EF: mrc   p14, #1, r2, c3, c4, #5
68@ REJECT-EF: [[@LINE-2]]:7: error: invalid operand for instruction
69
70mrc   p15, #1, r2, c3, c4, #5
71@ ACCEPT-EF: mrc   p15, #1, r2, c3, c4, #5
72@ REJECT-EF: [[@LINE-2]]:7: error: invalid operand for instruction
73