1 # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+xtheadvdot %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \
4 # RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xtheadvdot %s \
6 # RUN: | llvm-objdump -d --mattr=+xtheadvdot - \
7 # RUN: | FileCheck %s --check-prefix=CHECK-INST
8 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xtheadvdot %s \
9 # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11 th.vmaqau.vv v8
, v20
, v4
, v0.
t
12 # CHECK-INST: th.vmaqau.vv v8, v20, v4, v0.t
13 # CHECK-ENCODING: [0x0b,0x64,0x4a,0x88]
14 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
15 # CHECK-UNKNOWN: 884a640b <unknown>
17 th.vmaqau.vv v8
, v20
, v4
18 # CHECK-INST: th.vmaqau.vv v8, v20, v4
19 # CHECK-ENCODING: [0x0b,0x64,0x4a,0x8a]
20 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
21 # CHECK-UNKNOWN: 8a4a640b <unknown>
23 th.vmaqau.vx v8
, a0
, v4
, v0.
t
24 # CHECK-INST: th.vmaqau.vx v8, a0, v4, v0.t
25 # CHECK-ENCODING: [0x0b,0x64,0x45,0x8c]
26 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
27 # CHECK-UNKNOWN: 8c45640b <unknown>
29 th.vmaqau.vx v8
, a0
, v4
30 # CHECK-INST: th.vmaqau.vx v8, a0, v4
31 # CHECK-ENCODING: [0x0b,0x64,0x45,0x8e]
32 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
33 # CHECK-UNKNOWN: 8e45640b <unknown>
35 th.vmaqa.vv v8
, v20
, v4
, v0.
t
36 # CHECK-INST: th.vmaqa.vv v8, v20, v4, v0.t
37 # CHECK-ENCODING: [0x0b,0x64,0x4a,0x80]
38 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
39 # CHECK-UNKNOWN: 804a640b <unknown>
41 th.vmaqa.vv v8
, v20
, v4
42 # CHECK-INST: th.vmaqa.vv v8, v20, v4
43 # CHECK-ENCODING: [0x0b,0x64,0x4a,0x82]
44 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
45 # CHECK-UNKNOWN: 824a640b <unknown>
47 th.vmaqa.vx v8
, a0
, v4
, v0.
t
48 # CHECK-INST: th.vmaqa.vx v8, a0, v4, v0.t
49 # CHECK-ENCODING: [0x0b,0x64,0x45,0x84]
50 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
51 # CHECK-UNKNOWN: 8445640b <unknown>
53 th.vmaqa.vx v8
, a0
, v4
54 # CHECK-INST: th.vmaqa.vx v8, a0, v4
55 # CHECK-ENCODING: [0x0b,0x64,0x45,0x86]
56 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
57 # CHECK-UNKNOWN: 8645640b <unknown>
59 th.vmaqasu.vv v8
, v20
, v4
, v0.
t
60 # CHECK-INST: th.vmaqasu.vv v8, v20, v4, v0.t
61 # CHECK-ENCODING: [0x0b,0x64,0x4a,0x90]
62 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
63 # CHECK-UNKNOWN: 904a640b <unknown>
65 th.vmaqasu.vv v8
, v20
, v4
66 # CHECK-INST: th.vmaqasu.vv v8, v20, v4
67 # CHECK-ENCODING: [0x0b,0x64,0x4a,0x92]
68 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
69 # CHECK-UNKNOWN: 924a640b <unknown>
71 th.vmaqasu.vx v8
, a0
, v4
, v0.
t
72 # CHECK-INST: th.vmaqasu.vx v8, a0, v4, v0.t
73 # CHECK-ENCODING: [0x0b,0x64,0x45,0x94]
74 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
75 # CHECK-UNKNOWN: 9445640b <unknown>
77 th.vmaqasu.vx v8
, a0
, v4
78 # CHECK-INST: th.vmaqasu.vx v8, a0, v4
79 # CHECK-ENCODING: [0x0b,0x64,0x45,0x96]
80 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
81 # CHECK-UNKNOWN: 9645640b <unknown>
83 th.vmaqaus.vx v8
, a0
, v4
, v0.
t
84 # CHECK-INST: th.vmaqaus.vx v8, a0, v4, v0.t
85 # CHECK-ENCODING: [0x0b,0x64,0x45,0x9c]
86 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
87 # CHECK-UNKNOWN: 9c45640b <unknown>
89 th.vmaqaus.vx v8
, a0
, v4
90 # CHECK-INST: th.vmaqaus.vx v8, a0, v4
91 # CHECK-ENCODING: [0x0b,0x64,0x45,0x9e]
92 # CHECK-ERROR: instruction requires the following: 'XTHeadVdot' (T-Head Vector Extensions for Dot){{$}}
93 # CHECK-UNKNOWN: 9e45640b <unknown>