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
6 # CHECK: asrl r0, r1, #23 @ encoding: [0x50,0xea,0xef,0x51]
7 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction
10 # CHECK: asrl lr, r1, #27 @ encoding: [0x5e,0xea,0xef,0x61]
11 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
14 # CHECK: asrl r0, r1, r4 @ encoding: [0x50,0xea,0x2d,0x41]
15 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
18 # CHECK: lsll lr, r1, #11 @ encoding: [0x5e,0xea,0xcf,0x21]
19 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
22 # CHECK: lsll lr, r1, r4 @ encoding: [0x5e,0xea,0x0d,0x41]
23 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
26 # CHECK: lsrl lr, r1, #12 @ encoding: [0x5e,0xea,0x1f,0x31]
27 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
30 # CHECK: sqrshrl lr, r3, #64, r8 @ encoding: [0x5f,0xea,0x2d,0x83]
31 # CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
34 # CHECK: sqrshrl lr, r3, #48, r8 @ encoding: [0x5f,0xea,0xad,0x83]
35 # CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
38 # CHECK: sqshl lr, #17 @ encoding: [0x5e,0xea,0x7f,0x4f]
39 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
42 # CHECK: sqshll lr, r11, #28 @ encoding: [0x5f,0xea,0x3f,0x7b]
43 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
46 # CHECK: srshr lr, #11 @ encoding: [0x5e,0xea,0xef,0x2f]
47 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
50 # CHECK: srshrl lr, r11, #23 @ encoding: [0x5f,0xea,0xef,0x5b]
51 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
54 # CHECK: sqrshr lr, r12 @ encoding: [0x5e,0xea,0x2d,0xcf]
55 # CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
58 # CHECK: sqrshr r11, r12 @ encoding: [0x5b,0xea,0x2d,0xcf]
59 # CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
62 # CHECK: uqrshl lr, r12 @ encoding: [0x5e,0xea,0x0d,0xcf]
63 # CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
66 # CHECK: uqrshl r11, r12 @ encoding: [0x5b,0xea,0x0d,0xcf]
67 # CHECK-NOMVE: [[@LINE-2]]:2: warning: invalid instruction encoding
70 # CHECK: uqrshll lr, r1, #64, r4 @ encoding: [0x5f,0xea,0x0d,0x41]
71 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
74 # CHECK: uqrshll lr, r1, #48, r4 @ encoding: [0x5f,0xea,0x8d,0x41]
75 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
78 # CHECK: uqshl r0, #1 @ encoding: [0x50,0xea,0x4f,0x0f]
79 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
82 # CHECK: uqshll lr, r7, #7 @ encoding: [0x5f,0xea,0xcf,0x17]
83 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
86 # CHECK: urshr r0, #10 @ encoding: [0x50,0xea,0x9f,0x2f]
87 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding
90 # CHECK: urshrl r0, r9, #29 @ encoding: [0x51,0xea,0x5f,0x79]
91 # CHECK-NOMVE: [[@LINE-2]]:2: warning: potentially undefined instruction encoding