• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -triple=thumbv7 -mcpu=cortex-a8 -disassemble < %s 2> %t | FileCheck %s
2# RUN: FileCheck --check-prefix=ERROR < %t %s
3
4[0x09,0xea,0x08,0x04]
5# CHECK: and.w	r4, r9, r8
6
7[0x09,0xea,0x08,0x84]
8# CHECK: and.w	r4, r9, r8
9# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
10
11[0x04,0xea,0xe8,0x01]
12# CHECK: and.w	r1, r4, r8, asr #3
13
14[0x04,0xea,0xe8,0x81]
15# CHECK: and.w	r1, r4, r8, asr #3
16# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
17
18[0x11,0xea,0x47,0x02]
19# CHECK: ands.w	r2, r1, r7, lsl #1
20
21[0x11,0xea,0x47,0x82]
22# CHECK: ands.w	r2, r1, r7, lsl #1
23# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
24
25[0x45,0xea,0x06,0x04]
26# CHECK: orr.w	r4, r5, r6
27
28[0x45,0xea,0x06,0x84]
29# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
30
31[0x45,0xea,0x46,0x14]
32# CHECK: orr.w	r4, r5, r6, lsl #5
33
34[0x45,0xea,0x46,0x94]
35# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
36
37[0x55,0xea,0x56,0x14]
38# CHECK: orrs.w	r4, r5, r6, lsr #5
39
40[0x55,0xea,0x56,0x94]
41# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
42
43[0x85,0xea,0x06,0x04]
44# CHECK: eor.w	r4, r5, r6
45
46[0x85,0xea,0x06,0x84]
47# CHECK: eor.w	r4, r5, r6
48# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
49
50[0x85,0xea,0x46,0x14]
51# CHECK: eor.w	r4, r5, r6, lsl #5
52
53[0x85,0xea,0x46,0x94]
54# CHECK: eor.w	r4, r5, r6, lsl #5
55# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
56
57[0x4f,0xea,0x02,0x01]
58# CHECK: mov.w  r1, r2
59
60[0x4f,0xea,0x02,0x81]
61# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
62
63[0x4f,0xea,0x02,0x46]
64# CHECK: lsl.w	r6, r2, #16
65
66[0x4f,0xea,0x02,0xc6]
67# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
68
69[0x4f,0xea,0x12,0x46]
70# CHECK: lsr.w	r6, r2, #16
71
72[0x4f,0xea,0x12,0xc6]
73# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
74
75[0x5f,0xea,0x22,0x06]
76# CHECK: asrs.w	r6, r2, #32
77
78[0x5f,0xea,0x22,0x86]
79# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
80
81[0x5f,0xea,0x72,0x16]
82# CHECK: rors.w	r6, r2, #5
83
84[0x5f,0xea,0x72,0x96]
85# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
86
87[0x4f,0xea,0x34,0x04]
88# CHECK: rrx	r4, r4
89
90[0x4f,0xea,0x34,0x84]
91# CHECK: rrx	r4, r4
92# ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
93