1 # With Bitmanip carry-less multiply extension:
2 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zbc -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zbc -show-encoding \
5 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
6 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zbc < %s \
7 # RUN: | llvm-objdump --mattr=+zbc -d -r - \
8 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
9 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zbc < %s \
10 # RUN: | llvm-objdump --mattr=+zbc -d -r - \
11 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
13 # CHECK-ASM-AND-OBJ: clmul t0, t1, t2
14 # CHECK-ASM: encoding: [0xb3,0x12,0x73,0x0a]
16 # CHECK-ASM-AND-OBJ: clmulr t0, t1, t2
17 # CHECK-ASM: encoding: [0xb3,0x22,0x73,0x0a]
19 # CHECK-ASM-AND-OBJ: clmulh t0, t1, t2
20 # CHECK-ASM: encoding: [0xb3,0x32,0x73,0x0a]