[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / coprocessors.s
blob5ab29ccd3be07d5781c4ea9f939fdc79766162c0
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
10 mrc 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
14 mrc 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
18 mrc 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
22 mrc 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
26 mrc 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
30 mrc 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
34 mrc 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
38 mrc 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
42 mrc 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
46 mrc 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
50 mrc 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
54 mrc 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
58 mrc 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
62 mrc 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
66 mrc 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
70 mrc 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