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 11vfmul.vv v8, v4, v20, v0.t 12# CHECK-INST: vfmul.vv v8, v4, v20, v0.t 13# CHECK-ENCODING: [0x57,0x14,0x4a,0x90] 14# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 15# CHECK-UNKNOWN: 57 14 4a 90 <unknown> 16 17vfmul.vv v8, v4, v20 18# CHECK-INST: vfmul.vv v8, v4, v20 19# CHECK-ENCODING: [0x57,0x14,0x4a,0x92] 20# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 21# CHECK-UNKNOWN: 57 14 4a 92 <unknown> 22 23vfmul.vf v8, v4, fa0, v0.t 24# CHECK-INST: vfmul.vf v8, v4, fa0, v0.t 25# CHECK-ENCODING: [0x57,0x54,0x45,0x90] 26# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 27# CHECK-UNKNOWN: 57 54 45 90 <unknown> 28 29vfmul.vf v8, v4, fa0 30# CHECK-INST: vfmul.vf v8, v4, fa0 31# CHECK-ENCODING: [0x57,0x54,0x45,0x92] 32# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 33# CHECK-UNKNOWN: 57 54 45 92 <unknown> 34 35vfwmul.vv v8, v4, v20, v0.t 36# CHECK-INST: vfwmul.vv v8, v4, v20, v0.t 37# CHECK-ENCODING: [0x57,0x14,0x4a,0xe0] 38# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 39# CHECK-UNKNOWN: 57 14 4a e0 <unknown> 40 41vfwmul.vv v8, v4, v20 42# CHECK-INST: vfwmul.vv v8, v4, v20 43# CHECK-ENCODING: [0x57,0x14,0x4a,0xe2] 44# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 45# CHECK-UNKNOWN: 57 14 4a e2 <unknown> 46 47vfwmul.vf v8, v4, fa0, v0.t 48# CHECK-INST: vfwmul.vf v8, v4, fa0, v0.t 49# CHECK-ENCODING: [0x57,0x54,0x45,0xe0] 50# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 51# CHECK-UNKNOWN: 57 54 45 e0 <unknown> 52 53vfwmul.vf v8, v4, fa0 54# CHECK-INST: vfwmul.vf v8, v4, fa0 55# CHECK-ENCODING: [0x57,0x54,0x45,0xe2] 56# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions) 57# CHECK-UNKNOWN: 57 54 45 e2 <unknown> 58