[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / compress-rv64b.s
blob43900d404e04fbc3290bcbfbd6267976d3f42fc9
1 # RUN: llvm-mc -triple riscv64 -mattr=+c,+experimental-zbproposedc,+experimental-b -show-encoding < %s \
2 # RUN: | FileCheck -check-prefixes=CHECK-ALIAS %s
3 # RUN: llvm-mc -triple riscv64 -mattr=+c,+experimental-zbproposedc,+experimental-b -show-encoding \
4 # RUN: -riscv-no-aliases < %s | FileCheck -check-prefixes=CHECK-INST %s
5 # RUN: llvm-mc -triple riscv64 -mattr=+c,+experimental-zbproposedc,+experimental-b -filetype=obj < %s \
6 # RUN: | llvm-objdump --triple=riscv64 --mattr=+c,+experimental-zbproposedc,+experimental-b -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s
8 # RUN: llvm-mc -triple riscv64 -mattr=+c,+experimental-zbproposedc,+experimental-b -filetype=obj < %s \
9 # RUN: | llvm-objdump --triple=riscv64 --mattr=+c,+experimental-zbproposedc,+experimental-b -d -M no-aliases - \
10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s
12 # Tests compressed instructions available in rv64 and not in rv32.
14 # CHECK-BYTES: 01 68
15 # CHECK-ALIAS: zext.w s0, s0
16 # CHECK-INST: c.zext.w s0
17 # CHECK: # encoding: [0x01,0x68]
18 zext.w s0, s0