[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv64zbf-valid.s
blob1a2a41a33d056813f8a16e66285e0e1d8a09c4bf
1 # With B extension:
2 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-b -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-b < %s \
5 # RUN: | llvm-objdump --mattr=+experimental-b -d -r - \
6 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # With Bit-Field extension:
9 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbf -show-encoding \
10 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
11 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zbf < %s \
12 # RUN: | llvm-objdump --mattr=+experimental-zbf -d -r - \
13 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
15 # CHECK-ASM-AND-OBJ: bfpw t0, t1, t2
16 # CHECK-ASM: encoding: [0xbb,0x72,0x73,0x48]
17 bfpw t0, t1, t2