Debian Codegraph @

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

raw
1 # RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+v %s \
2 # RUN: --mattr=+f \
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 \
8 # RUN: | llvm-objdump -d --mattr=+v --mattr=+f - \
9 # RUN: | FileCheck %s --check-prefix=CHECK-INST
10 # RUN: llvm-mc -triple=riscv64 -filetype=obj --mattr=+v %s \
11 # RUN: --mattr=+f \
12 # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
13
14 vfdiv.vv v8, v4, v20, v0.t
15 # CHECK-INST: vfdiv.vv v8, v4, v20, v0.t
16 # CHECK-ENCODING: [0x57,0x14,0x4a,0x80]
17 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
18 # CHECK-UNKNOWN: 804a1457 <unknown>
19
20 vfdiv.vv v8, v4, v20
21 # CHECK-INST: vfdiv.vv v8, v4, v20
22 # CHECK-ENCODING: [0x57,0x14,0x4a,0x82]
23 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
24 # CHECK-UNKNOWN: 824a1457 <unknown>
25
26 vfdiv.vf v8, v4, fa0, v0.t
27 # CHECK-INST: vfdiv.vf v8, v4, fa0, v0.t
28 # CHECK-ENCODING: [0x57,0x54,0x45,0x80]
29 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
30 # CHECK-UNKNOWN: 80455457 <unknown>
31
32 vfdiv.vf v8, v4, fa0
33 # CHECK-INST: vfdiv.vf v8, v4, fa0
34 # CHECK-ENCODING: [0x57,0x54,0x45,0x82]
35 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
36 # CHECK-UNKNOWN: 82455457 <unknown>
37
38 vfrdiv.vf v8, v4, fa0, v0.t
39 # CHECK-INST: vfrdiv.vf v8, v4, fa0, v0.t
40 # CHECK-ENCODING: [0x57,0x54,0x45,0x84]
41 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
42 # CHECK-UNKNOWN: 84455457 <unknown>
43
44 vfrdiv.vf v8, v4, fa0
45 # CHECK-INST: vfrdiv.vf v8, v4, fa0
46 # CHECK-ENCODING: [0x57,0x54,0x45,0x86]
47 # CHECK-ERROR: instruction requires the following: 'V'{{.*}}'Zve32f' (Vector Extensions for Embedded Processors){{$}}
48 # CHECK-UNKNOWN: 86455457 <unknown>