mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
398e5f03a7
Summary: This patch updates MC tests related to compression in RISCV to insure they work correctly with automatic compression and relaxation enabled. This is the first part of a series of patches to implement automatic compression for RISCV. Reviewers: asb, apazos Reviewed By: asb Subscribers: shiva0217, efriedma, llvm-commits, asb, rbar, johnrusso, simoncook, jordy.potman.lists, apazos, niosHD, kito-cheng Differential Revision: https://reviews.llvm.org/D43328 llvm-svn: 329441
16 lines
744 B
ArmAsm
16 lines
744 B
ArmAsm
# RUN: llvm-mc -triple=riscv32 -mattr=+c -riscv-no-aliases -show-encoding < %s \
|
|
# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \
|
|
# RUN: | llvm-objdump -d -riscv-no-aliases - | FileCheck -check-prefix=CHECK-INST %s
|
|
# RUN: not llvm-mc -triple riscv32 \
|
|
# RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
|
|
# RUN: not llvm-mc -triple riscv64 -mattr=+c \
|
|
# RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
|
|
|
|
# CHECK-INST: c.jal 2046
|
|
# CHECK: encoding: [0xfd,0x2f]
|
|
# CHECK-NO-EXT: error: instruction use requires an option to be enabled
|
|
c.jal 2046
|