Debian Codegraph @

llvm/test/MC/RISCV/rvv/fothers.s

raw
1 # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v %s \
2 # RUN: --mattr=+f --riscv-no-aliases \
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=+v %s \
7 # RUN: --mattr=+f | llvm-objdump -d --mattr=+v --mattr=+f -M no-aliases - \
8 # RUN: | FileCheck %s --check-prefix=CHECK-INST
9 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \
10 # RUN: --mattr=+f | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
11
12 vfsqrt.v v8, v4, v0.t
13 # CHECK-INST: vfsqrt.v v8, v4, v0.t
14 # CHECK-ENCODING: [0x57,0x14,0x40,0x4c]
15 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
16 # CHECK-UNKNOWN: 4c401457 <unknown>
17
18 vfsqrt.v v8, v4
19 # CHECK-INST: vfsqrt.v v8, v4
20 # CHECK-ENCODING: [0x57,0x14,0x40,0x4e]
21 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
22 # CHECK-UNKNOWN: 4e401457 <unknown>
23
24 vfrsqrt7.v v8, v4, v0.t
25 # CHECK-INST: vfrsqrt7.v v8, v4, v0.t
26 # CHECK-ENCODING: [0x57,0x14,0x42,0x4c]
27 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
28 # CHECK-UNKNOWN: 4c421457 <unknown>
29
30 vfrsqrt7.v v8, v4
31 # CHECK-INST: vfrsqrt7.v v8, v4
32 # CHECK-ENCODING: [0x57,0x14,0x42,0x4e]
33 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
34 # CHECK-UNKNOWN: 4e421457 <unknown>
35
36 vfrec7.v v8, v4, v0.t
37 # CHECK-INST: vfrec7.v v8, v4, v0.t
38 # CHECK-ENCODING: [0x57,0x94,0x42,0x4c]
39 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
40 # CHECK-UNKNOWN: 4c429457 <unknown>
41
42 vfrec7.v v8, v4
43 # CHECK-INST: vfrec7.v v8, v4
44 # CHECK-ENCODING: [0x57,0x94,0x42,0x4e]
45 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
46 # CHECK-UNKNOWN: 4e429457 <unknown>
47
48 vfclass.v v8, v4, v0.t
49 # CHECK-INST: vfclass.v v8, v4, v0.t
50 # CHECK-ENCODING: [0x57,0x14,0x48,0x4c]
51 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
52 # CHECK-UNKNOWN: 4c481457 <unknown>
53
54 vfclass.v v8, v4
55 # CHECK-INST: vfclass.v v8, v4
56 # CHECK-ENCODING: [0x57,0x14,0x48,0x4e]
57 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
58 # CHECK-UNKNOWN: 4e481457 <unknown>
59
60 vfmerge.vfm v8, v4, fa0, v0
61 # CHECK-INST: vfmerge.vfm v8, v4, fa0, v0
62 # CHECK-ENCODING: [0x57,0x54,0x45,0x5c]
63 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
64 # CHECK-UNKNOWN: 5c455457 <unknown>
65
66 vfslide1up.vf v8, v4, fa0, v0.t
67 # CHECK-INST: vfslide1up.vf v8, v4, fa0, v0.t
68 # CHECK-ENCODING: [0x57,0x54,0x45,0x38]
69 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
70 # CHECK-UNKNOWN: 38455457 <unknown>
71
72 vfslide1up.vf v8, v4, fa0
73 # CHECK-INST: vfslide1up.vf v8, v4, fa0
74 # CHECK-ENCODING: [0x57,0x54,0x45,0x3a]
75 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
76 # CHECK-UNKNOWN: 3a455457 <unknown>
77
78 vfslide1down.vf v8, v4, fa0, v0.t
79 # CHECK-INST: vfslide1down.vf v8, v4, fa0, v0.t
80 # CHECK-ENCODING: [0x57,0x54,0x45,0x3c]
81 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
82 # CHECK-UNKNOWN: 3c455457 <unknown>
83
84 vfslide1down.vf v8, v4, fa0
85 # CHECK-INST: vfslide1down.vf v8, v4, fa0
86 # CHECK-ENCODING: [0x57,0x54,0x45,0x3e]
87 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
88 # CHECK-UNKNOWN: 3e455457 <unknown>