1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zksed -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zksed -show-encoding \
4 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
5 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zksed < %s \
6 # RUN: | llvm-objdump --mattr=+zksed --no-print-imm-hex -d -r - \
7 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zksed < %s \
9 # RUN: | llvm-objdump --mattr=+zksed --no-print-imm-hex -d -r - \
10 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
12 # CHECK-ASM-AND-OBJ: sm4ed a0, a1, a2, 3
13 # CHECK-ASM: [0x33,0x85,0xc5,0xf0]
16 # CHECK-ASM-AND-OBJ: sm4ks a0, a1, a2, 3
17 # CHECK-ASM: [0x33,0x85,0xc5,0xf4]