[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / Disassembler / ARM / thumb2-bit-15.txt
bloba73e7c9336136922ef2f438338ccca9dbeb8ddad
1 # RUN: not llvm-mc -triple=thumbv7 -mcpu=cortex-a8 -disassemble < %s 2> %t | FileCheck %s
2 # RUN: FileCheck --check-prefix=ERROR < %t %s
4 [0x09,0xea,0x08,0x04]
5 # CHECK: and.w  r4, r9, r8
7 [0x09,0xea,0x08,0x84]
8 # CHECK: and.w  r4, r9, r8
9 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
11 [0x04,0xea,0xe8,0x01]
12 # CHECK: and.w  r1, r4, r8, asr #3
14 [0x04,0xea,0xe8,0x81]
15 # CHECK: and.w  r1, r4, r8, asr #3
16 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
18 [0x11,0xea,0x47,0x02]
19 # CHECK: ands.w r2, r1, r7, lsl #1
21 [0x11,0xea,0x47,0x82]
22 # CHECK: ands.w r2, r1, r7, lsl #1
23 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
25 [0x45,0xea,0x06,0x04]
26 # CHECK: orr.w  r4, r5, r6
28 [0x45,0xea,0x06,0x84]
29 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
31 [0x45,0xea,0x46,0x14]
32 # CHECK: orr.w  r4, r5, r6, lsl #5
34 [0x45,0xea,0x46,0x94]
35 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
37 [0x55,0xea,0x56,0x14]
38 # CHECK: orrs.w r4, r5, r6, lsr #5
40 [0x55,0xea,0x56,0x94]
41 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
43 [0x85,0xea,0x06,0x04]
44 # CHECK: eor.w  r4, r5, r6
46 [0x85,0xea,0x06,0x84]
47 # CHECK: eor.w  r4, r5, r6
48 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
50 [0x85,0xea,0x46,0x14]
51 # CHECK: eor.w  r4, r5, r6, lsl #5
53 [0x85,0xea,0x46,0x94]
54 # CHECK: eor.w  r4, r5, r6, lsl #5
55 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
57 [0x4f,0xea,0x02,0x01]
58 # CHECK: mov.w  r1, r2
60 [0x4f,0xea,0x02,0x81]
61 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
63 [0x4f,0xea,0x02,0x46]
64 # CHECK: lsl.w  r6, r2, #16
66 [0x4f,0xea,0x02,0xc6]
67 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
69 [0x4f,0xea,0x12,0x46]
70 # CHECK: lsr.w  r6, r2, #16
72 [0x4f,0xea,0x12,0xc6]
73 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
75 [0x5f,0xea,0x22,0x06]
76 # CHECK: asrs.w r6, r2, #32
78 [0x5f,0xea,0x22,0x86]
79 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
81 [0x5f,0xea,0x72,0x16]
82 # CHECK: rors.w r6, r2, #5
84 [0x5f,0xea,0x72,0x96]
85 # ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding
87 [0x4f,0xea,0x34,0x04]
88 # CHECK: rrx    r4, r4
90 [0x4f,0xea,0x34,0x84]
91 # CHECK: rrx    r4, r4
92 # ERROR: [[@LINE-2]]:2: warning: potentially undefined instruction encoding