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.
15 # CHECK-ALIAS: zext.w s0, s0
16 # CHECK-INST: c.zext.w s0
17 # CHECK: # encoding: [0x01,0x68]