| # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+xtheadvdot %s \ |
| # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| # RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \ |
| # RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xtheadvdot %s \ |
| # RUN: | llvm-objdump -d --mattr=+xtheadvdot - \ |
| # RUN: | FileCheck %s --check-prefix=CHECK-INST |
| # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+xtheadvdot %s \ |
| # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| |
| th.vmaqau.vv v8, v20, v4, v0.t |
| # CHECK-INST: th.vmaqau.vv v8, v20, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x4a,0x88] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 4a 88 <unknown> |
| |
| th.vmaqau.vv v8, v20, v4 |
| # CHECK-INST: th.vmaqau.vv v8, v20, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x4a,0x8a] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 4a 8a <unknown> |
| |
| th.vmaqau.vx v8, a0, v4, v0.t |
| # CHECK-INST: th.vmaqau.vx v8, a0, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x8c] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 8c <unknown> |
| |
| th.vmaqau.vx v8, a0, v4 |
| # CHECK-INST: th.vmaqau.vx v8, a0, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x8e] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 8e <unknown> |
| |
| th.vmaqa.vv v8, v20, v4, v0.t |
| # CHECK-INST: th.vmaqa.vv v8, v20, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x4a,0x80] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 4a 80 <unknown> |
| |
| th.vmaqa.vv v8, v20, v4 |
| # CHECK-INST: th.vmaqa.vv v8, v20, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x4a,0x82] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 4a 82 <unknown> |
| |
| th.vmaqa.vx v8, a0, v4, v0.t |
| # CHECK-INST: th.vmaqa.vx v8, a0, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x84] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 84 <unknown> |
| |
| th.vmaqa.vx v8, a0, v4 |
| # CHECK-INST: th.vmaqa.vx v8, a0, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x86] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 86 <unknown> |
| |
| th.vmaqasu.vv v8, v20, v4, v0.t |
| # CHECK-INST: th.vmaqasu.vv v8, v20, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x4a,0x90] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 4a 90 <unknown> |
| |
| th.vmaqasu.vv v8, v20, v4 |
| # CHECK-INST: th.vmaqasu.vv v8, v20, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x4a,0x92] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 4a 92 <unknown> |
| |
| th.vmaqasu.vx v8, a0, v4, v0.t |
| # CHECK-INST: th.vmaqasu.vx v8, a0, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x94] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 94 <unknown> |
| |
| th.vmaqasu.vx v8, a0, v4 |
| # CHECK-INST: th.vmaqasu.vx v8, a0, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x96] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 96 <unknown> |
| |
| th.vmaqaus.vx v8, a0, v4, v0.t |
| # CHECK-INST: th.vmaqaus.vx v8, a0, v4, v0.t |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x9c] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 9c <unknown> |
| |
| th.vmaqaus.vx v8, a0, v4 |
| # CHECK-INST: th.vmaqaus.vx v8, a0, v4 |
| # CHECK-ENCODING: [0x0b,0x64,0x45,0x9e] |
| # CHECK-ERROR: instruction requires the following: 'xtheadvdot' (T-Head Vector Extensions for Dot){{$}} |
| # CHECK-UNKNOWN: 0b 64 45 9e <unknown> |