29 lines · plain
1# RUN: llvm-mc -triple=riscv32 -show-encoding --mattr=+zve32x --mattr=+zvksh %s \2# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3# RUN: not llvm-mc -triple=riscv32 -show-encoding %s 2>&1 \4# RUN: | FileCheck %s --check-prefix=CHECK-ERROR5# 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-INST8# RUN: llvm-mc -triple=riscv32 -filetype=obj --mattr=+zve32x --mattr=+zvksh %s \9# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN10 11vsm3c.vi v10, v9, 712# CHECK-INST: vsm3c.vi v10, v9, 713# CHECK-ENCODING: [0x77,0xa5,0x93,0xae]14# CHECK-ERROR: instruction requires the following: 'Zvksh' (SM3 Hash Function Instructions){{$}}15# CHECK-UNKNOWN: ae93a577 <unknown>16 17vsm3me.vv v10, v9, v818# CHECK-INST: vsm3me.vv v10, v9, v819# 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.24vsm3me.vv v10, v9, v1025# CHECK-INST: vsm3me.vv v10, v9, v1026# CHECK-ENCODING: [0x77,0x25,0x95,0x82]27# CHECK-ERROR: instruction requires the following: 'Zvksh' (SM3 Hash Function Instructions){{$}}28# CHECK-UNKNOWN: 82952577 <unknown>29