xref: /llvm-project/llvm/test/MC/Disassembler/ARM/mve-scalar-shift.txt (revision 0b001f94a54a93e3e7ff080c829de8684f92630a)
1# RUN: llvm-mc -disassemble -triple=thumbv8.1m.main-none-eabi -mattr=+mve.fp,+fp64 -show-encoding %s | FileCheck %s
2# RUN: not llvm-mc -disassemble -triple=thumbv8.1m.main-none-eabi -show-encoding %s &> %t
3# RUN: FileCheck --check-prefix=CHECK-NOMVE < %t %s
4
5[0x50 0xea 0xef 0x51]
6# CHECK: asrl r0, r1, #23 @ encoding: [0x50,0xea,0xef,0x51]
7# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction
8
9[0x5e 0xea 0xef 0x61]
10# CHECK: asrl lr, r1, #27 @ encoding: [0x5e,0xea,0xef,0x61]
11# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
12
13[0x50 0xea 0x2d 0x41]
14# CHECK: asrl r0, r1, r4 @ encoding: [0x50,0xea,0x2d,0x41]
15# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
16
17[0x5e 0xea 0xcf 0x21]
18# CHECK: lsll    lr, r1, #11  @ encoding: [0x5e,0xea,0xcf,0x21]
19# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
20
21[0x5e 0xea 0x0d 0x41]
22# CHECK: lsll    lr, r1, r4  @ encoding: [0x5e,0xea,0x0d,0x41]
23# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
24
25[0x5e 0xea 0x1f 0x31]
26# CHECK: lsrl    lr, r1, #12  @ encoding: [0x5e,0xea,0x1f,0x31]
27# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
28
29[0x5f 0xea 0x2d 0x83]
30# CHECK: sqrshrl lr, r3, #64, r8  @ encoding: [0x5f,0xea,0x2d,0x83]
31# CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
32
33[0x5f 0xea 0xad 0x83]
34# CHECK: sqrshrl lr, r3, #48, r8  @ encoding: [0x5f,0xea,0xad,0x83]
35# CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
36
37[0x5e 0xea 0x7f 0x4f]
38# CHECK: sqshl   lr, #17  @ encoding: [0x5e,0xea,0x7f,0x4f]
39# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
40
41[0x5f 0xea 0x3f 0x7b]
42# CHECK: sqshll  lr, r11, #28  @ encoding: [0x5f,0xea,0x3f,0x7b]
43# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
44
45[0x5e 0xea 0xef 0x2f]
46# CHECK: srshr   lr, #11  @ encoding: [0x5e,0xea,0xef,0x2f]
47# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
48
49[0x5f 0xea 0xef 0x5b]
50# CHECK: srshrl  lr, r11, #23  @ encoding: [0x5f,0xea,0xef,0x5b]
51# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
52
53[0x5e 0xea 0x2d 0xcf]
54# CHECK: sqrshr  lr, r12  @ encoding: [0x5e,0xea,0x2d,0xcf]
55# CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
56
57[0x5b 0xea 0x2d 0xcf]
58# CHECK: sqrshr  r11, r12  @ encoding: [0x5b,0xea,0x2d,0xcf]
59# CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
60
61[0x5e 0xea 0x0d 0xcf]
62# CHECK: uqrshl  lr, r12  @ encoding: [0x5e,0xea,0x0d,0xcf]
63# CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
64
65[0x5b 0xea 0x0d 0xcf]
66# CHECK: uqrshl  r11, r12  @ encoding: [0x5b,0xea,0x0d,0xcf]
67# CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
68
69[0x5f 0xea 0x0d 0x41]
70# CHECK: uqrshll lr, r1, #64, r4  @ encoding: [0x5f,0xea,0x0d,0x41]
71# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
72
73[0x5f 0xea 0x8d 0x41]
74# CHECK: uqrshll lr, r1, #48, r4  @ encoding: [0x5f,0xea,0x8d,0x41]
75# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
76
77[0x50 0xea 0x4f 0x0f]
78# CHECK: uqshl   r0, #1  @ encoding: [0x50,0xea,0x4f,0x0f]
79# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
80
81[0x5f 0xea 0xcf 0x17]
82# CHECK: uqshll  lr, r7, #7  @ encoding: [0x5f,0xea,0xcf,0x17]
83# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
84
85[0x50 0xea 0x9f 0x2f]
86# CHECK: urshr   r0, #10  @ encoding: [0x50,0xea,0x9f,0x2f]
87# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
88
89[0x51 0xea 0x5f 0x79]
90# CHECK: urshrl  r0, r9, #29  @ encoding: [0x51,0xea,0x5f,0x79]
91# CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
92