• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
11vfsqrt.v v8, v4, v0.t
12# CHECK-INST: vfsqrt.v v8, v4, v0.t
13# CHECK-ENCODING: [0x57,0x14,0x40,0x4c]
14# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
15# CHECK-UNKNOWN: 57 14 40 4c <unknown>
16
17vfsqrt.v v8, v4
18# CHECK-INST: vfsqrt.v v8, v4
19# CHECK-ENCODING: [0x57,0x14,0x40,0x4e]
20# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
21# CHECK-UNKNOWN: 57 14 40 4e <unknown>
22
23vfclass.v v8, v4, v0.t
24# CHECK-INST: vfclass.v v8, v4, v0.t
25# CHECK-ENCODING: [0x57,0x14,0x48,0x4c]
26# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
27# CHECK-UNKNOWN: 57 14 48 4c <unknown>
28
29vfclass.v v8, v4
30# CHECK-INST: vfclass.v v8, v4
31# CHECK-ENCODING: [0x57,0x14,0x48,0x4e]
32# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
33# CHECK-UNKNOWN: 57 14 48 4e <unknown>
34
35vfmerge.vfm v8, v4, fa0, v0
36# CHECK-INST: vfmerge.vfm v8, v4, fa0, v0
37# CHECK-ENCODING: [0x57,0x54,0x45,0x5c]
38# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
39# CHECK-UNKNOWN: 57 54 45 5c <unknown>
40
41vfslide1up.vf v8, v4, fa0, v0.t
42# CHECK-INST: vfslide1up.vf v8, v4, fa0, v0.t
43# CHECK-ENCODING: [0x57,0x54,0x45,0x38]
44# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
45# CHECK-UNKNOWN: 57 54 45 38 <unknown>
46
47vfslide1up.vf v8, v4, fa0
48# CHECK-INST: vfslide1up.vf v8, v4, fa0
49# CHECK-ENCODING: [0x57,0x54,0x45,0x3a]
50# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
51# CHECK-UNKNOWN: 57 54 45 3a <unknown>
52
53vfslide1down.vf v8, v4, fa0, v0.t
54# CHECK-INST: vfslide1down.vf v8, v4, fa0, v0.t
55# CHECK-ENCODING: [0x57,0x54,0x45,0x3c]
56# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
57# CHECK-UNKNOWN: 57 54 45 3c <unknown>
58
59vfslide1down.vf v8, v4, fa0
60# CHECK-INST: vfslide1down.vf v8, v4, fa0
61# CHECK-ENCODING: [0x57,0x54,0x45,0x3e]
62# CHECK-ERROR: instruction requires the following: 'V' (Vector Instructions)
63# CHECK-UNKNOWN: 57 54 45 3e <unknown>
64