Debian Codegraph @

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

raw
1 # RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+zvksh %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \
4 # RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 # RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvksh %s \
6 # RUN: | llvm-objdump -d --mattr=+zve32x --mattr=+zvksh --no-print-imm-hex - \
7 # RUN: | FileCheck %s --check-prefix=CHECK-INST
8 # RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvksh %s \
9 # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10
11 vsm3c.vi v10, v9, 7
12 # CHECK-INST: vsm3c.vi v10, v9, 7
13 # CHECK-ENCODING: [0x77,0xa5,0x93,0xae]
14 # CHECK-ERROR: instruction requires the following: 'Zvksh' (SM3 Hash Function Instructions){{$}}
15 # CHECK-UNKNOWN: ae93a577 <unknown>
16
17 vsm3me.vv v10, v9, v8
18 # CHECK-INST: vsm3me.vv v10, v9, v8
19 # CHECK-ENCODING: [0x77,0x25,0x94,0x82]
20 # CHECK-ERROR: instruction requires the following: 'Zvksh' (SM3 Hash Function Instructions){{$}}
21 # CHECK-UNKNOWN: 82942577 <unknown>
22
23 # vs1 is allowed to overlap, but not vs2.
24 vsm3me.vv v10, v9, v10
25 # CHECK-INST: vsm3me.vv v10, v9, v10
26 # CHECK-ENCODING: [0x77,0x25,0x95,0x82]
27 # CHECK-ERROR: instruction requires the following: 'Zvksh' (SM3 Hash Function Instructions){{$}}
28 # CHECK-UNKNOWN: 82952577 <unknown>