| 1 |
# RUN: llvm-mc -triple=riscv32 -show-encoding -mattr=+zvfbfmin %s \ |
| 2 |
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
# RUN: not llvm-mc -triple=riscv32 -show-encoding -mattr=+v,+f %s 2>&1 \ |
| 4 |
# RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 5 |
# RUN: llvm-mc -triple=riscv32 -filetype=obj -mattr=+zvfbfmin %s \ |
| 6 |
# RUN: | llvm-objdump -d --mattr=+zvfbfmin - \ |
| 7 |
# RUN: | FileCheck %s --check-prefix=CHECK-INST |
| 8 |
# RUN: llvm-mc -triple=riscv32 -filetype=obj -mattr=+zvfbfmin %s \ |
| 9 |
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 10 |
# RUN: llvm-mc -triple=riscv64 -show-encoding -mattr=+zvfbfmin %s \ |
| 11 |
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 12 |
# RUN: not llvm-mc -triple=riscv64 -show-encoding -mattr=+v,+f %s 2>&1 \ |
| 13 |
# RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 14 |
# RUN: llvm-mc -triple=riscv64 -filetype=obj -mattr=+zvfbfmin %s \ |
| 15 |
# RUN: | llvm-objdump -d --mattr=+zvfbfmin - \ |
| 16 |
# RUN: | FileCheck %s --check-prefix=CHECK-INST |
| 17 |
# RUN: llvm-mc -triple=riscv64 -filetype=obj -mattr=+zvfbfmin %s \ |
| 18 |
# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 19 |
|
| 20 |
# CHECK-INST: vfncvtbf16.f.f.w v8, v4, v0.t |
| 21 |
# CHECK-ENCODING: [0x57,0x94,0x4e,0x48] |
| 22 |
# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts){{$}} |
| 23 |
# CHECK-UNKNOWN: 484e9457 <unknown> |
| 24 |
vfncvtbf16.f.f.w v8, v4, v0.t |
| 25 |
|
| 26 |
# CHECK-INST: vfncvtbf16.f.f.w v8, v4 |
| 27 |
# CHECK-ENCODING: [0x57,0x94,0x4e,0x4a] |
| 28 |
# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts){{$}} |
| 29 |
# CHECK-UNKNOWN: 4a4e9457 <unknown> |
| 30 |
vfncvtbf16.f.f.w v8, v4 |
| 31 |
|
| 32 |
# CHECK-INST: vfwcvtbf16.f.f.v v8, v4, v0.t |
| 33 |
# CHECK-ENCODING: [0x57,0x94,0x46,0x48] |
| 34 |
# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts){{$}} |
| 35 |
# CHECK-UNKNOWN: 48469457 <unknown> |
| 36 |
vfwcvtbf16.f.f.v v8, v4, v0.t |
| 37 |
|
| 38 |
# CHECK-INST: vfwcvtbf16.f.f.v v8, v4 |
| 39 |
# CHECK-ENCODING: [0x57,0x94,0x46,0x4a] |
| 40 |
# CHECK-ERROR: instruction requires the following: 'Zvfbfmin' (Vector BF16 Converts){{$}} |
| 41 |
# CHECK-UNKNOWN: 4a469457 <unknown> |
| 42 |
vfwcvtbf16.f.f.v v8, v4 |