1 # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+experimental-v %s \
3 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
4 # RUN: not llvm-mc -triple=riscv64 -show-encoding %s 2>&1 \
5 # RUN: | FileCheck %s --check-prefix=CHECK-ERROR
6 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \
8 # RUN: | llvm-objdump -d --mattr=+experimental-v --mattr=+f - \
9 # RUN: | FileCheck %s --check-prefix=CHECK-INST
10 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+experimental-v %s \
12 # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
14 vfmin.vv v8
, v4
, v20
, v0.
t
15 # CHECK-INST: vfmin.vv v8, v4, v20, v0.t
16 # CHECK-ENCODING: [0x57,0x14,0x4a,0x10]
17 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
18 # CHECK-UNKNOWN: 57 14 4a 10 <unknown>
21 # CHECK-INST: vfmin.vv v8, v4, v20
22 # CHECK-ENCODING: [0x57,0x14,0x4a,0x12]
23 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
24 # CHECK-UNKNOWN: 57 14 4a 12 <unknown>
26 vfmin.vf v8
, v4
, fa0
, v0.
t
27 # CHECK-INST: vfmin.vf v8, v4, fa0, v0.t
28 # CHECK-ENCODING: [0x57,0x54,0x45,0x10]
29 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
30 # CHECK-UNKNOWN: 57 54 45 10 <unknown>
33 # CHECK-INST: vfmin.vf v8, v4, fa0
34 # CHECK-ENCODING: [0x57,0x54,0x45,0x12]
35 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
36 # CHECK-UNKNOWN: 57 54 45 12 <unknown>
38 vfmax.vv v8
, v4
, v20
, v0.
t
39 # CHECK-INST: vfmax.vv v8, v4, v20, v0.t
40 # CHECK-ENCODING: [0x57,0x14,0x4a,0x18]
41 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
42 # CHECK-UNKNOWN: 57 14 4a 18 <unknown>
45 # CHECK-INST: vfmax.vv v8, v4, v20
46 # CHECK-ENCODING: [0x57,0x14,0x4a,0x1a]
47 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
48 # CHECK-UNKNOWN: 57 14 4a 1a <unknown>
50 vfmax.vf v8
, v4
, fa0
, v0.
t
51 # CHECK-INST: vfmax.vf v8, v4, fa0, v0.t
52 # CHECK-ENCODING: [0x57,0x54,0x45,0x18]
53 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
54 # CHECK-UNKNOWN: 57 54 45 18 <unknown>
57 # CHECK-INST: vfmax.vf v8, v4, fa0
58 # CHECK-ENCODING: [0x57,0x54,0x45,0x1a]
59 # CHECK-ERROR: instruction requires the following: 'F'{{.*}}'V'
60 # CHECK-UNKNOWN: 57 54 45 1a <unknown>