1 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zknh -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zknh < %s \
4 # RUN: | llvm-objdump --mattr=+zknh -d -r - \
5 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
7 # CHECK-ASM-AND-OBJ: sha512sig0 a0, a1
8 # CHECK-ASM: [0x13,0x95,0x65,0x10]
11 # CHECK-ASM-AND-OBJ: sha512sig1 a0, a1
12 # CHECK-ASM: [0x13,0x95,0x75,0x10]
15 # CHECK-ASM-AND-OBJ: sha512sum0 a0, a1
16 # CHECK-ASM: [0x13,0x95,0x45,0x10]
19 # CHECK-ASM-AND-OBJ: sha512sum1 a0, a1
20 # CHECK-ASM: [0x13,0x95,0x55,0x10]