1 # RUN: not llvm-mc -triple=thumbv7 -mcpu=cortex-a8 -disassemble < %s 2> %t | FileCheck %s
2 # RUN: FileCheck --check-prefix=ERROR < %t %s
5 # CHECK: and.w r4, r9, r8
8 # CHECK: and.w r4, r9, r8
9 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
12 # CHECK: and.w r1, r4, r8, asr #3
15 # CHECK: and.w r1, r4, r8, asr #3
16 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
19 # CHECK: ands.w r2, r1, r7, lsl #1
22 # CHECK: ands.w r2, r1, r7, lsl #1
23 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
26 # CHECK: orr.w r4, r5, r6
29 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
32 # CHECK: orr.w r4, r5, r6, lsl #5
35 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
38 # CHECK: orrs.w r4, r5, r6, lsr #5
41 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
44 # CHECK: eor.w r4, r5, r6
47 # CHECK: eor.w r4, r5, r6
48 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
51 # CHECK: eor.w r4, r5, r6, lsl #5
54 # CHECK: eor.w r4, r5, r6, lsl #5
55 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
61 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
64 # CHECK: lsl.w r6, r2, #16
67 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
70 # CHECK: lsr.w r6, r2, #16
73 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
76 # CHECK: asrs.w r6, r2, #32
79 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
82 # CHECK: rors.w r6, r2, #5
85 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
92 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding