1# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+experimental-v %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=+experimental-v %s \ 6# RUN: | llvm-objdump -d --mattr=+experimental-v - \ 7# RUN: | FileCheck %s --check-prefix=CHECK-INST 8# RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \ 9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN 10 11vfmv.v.f v8, fa0 12# CHECK-INST: vfmv.v.f v8, fa0 13# CHECK-ENCODING: [0x57,0x54,0x05,0x5e] 14# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 15# CHECK-UNKNOWN: 57 54 05 5e <unknown> 16 17vfmv.f.s fa0, v4 18# CHECK-INST: vfmv.f.s fa0, v4 19# CHECK-ENCODING: [0x57,0x15,0x40,0x42] 20# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 21# CHECK-UNKNOWN: 57 15 40 42 <unknown> 22 23vfmv.s.f v8, fa0 24# CHECK-INST: vfmv.s.f v8, fa0 25# CHECK-ENCODING: [0x57,0x54,0x05,0x42] 26# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 27# CHECK-UNKNOWN: 57 54 05 42 <unknown> 28