diff options
author | Sameer AbuAsal <sabuasal@codeaurora.org> | 2018-04-06 18:27:45 +0000 |
---|---|---|
committer | Sameer AbuAsal <sabuasal@codeaurora.org> | 2018-04-06 18:27:45 +0000 |
commit | 181501a6b95116f87bb850dc410b855d7ebedc0b (patch) | |
tree | 9dfe057170ea94939e7e6ec9f4bd37d5679fcc0a | |
parent | ae31223ba715f32035f22fb27c44fdf64776848b (diff) | |
download | bcm5719-llvm-181501a6b95116f87bb850dc410b855d7ebedc0b.tar.gz bcm5719-llvm-181501a6b95116f87bb850dc410b855d7ebedc0b.zip |
[RISCV] Update MC compression tests
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
-rw-r--r-- | llvm/test/MC/RISCV/cnop.s | 3 | ||||
-rw-r--r-- | llvm/test/MC/RISCV/rv32c-only-valid.s | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/MC/RISCV/cnop.s b/llvm/test/MC/RISCV/cnop.s index ff2acee8868..2a2755f55e1 100644 --- a/llvm/test/MC/RISCV/cnop.s +++ b/llvm/test/MC/RISCV/cnop.s @@ -10,8 +10,9 @@ .type alpha,@function alpha: # BB#0: - addi sp, sp, -16 + c.addi sp, -16 c.lw a0, 0(a0) + c.lw a1, 4(a0) # CHECK-INST: c.nop .Lfunc_end0: .size alpha, .Lfunc_end0-alpha diff --git a/llvm/test/MC/RISCV/rv32c-only-valid.s b/llvm/test/MC/RISCV/rv32c-only-valid.s index 9767ebc6161..01700bcd575 100644 --- a/llvm/test/MC/RISCV/rv32c-only-valid.s +++ b/llvm/test/MC/RISCV/rv32c-only-valid.s @@ -1,7 +1,7 @@ # 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 -riscv-no-aliases < %s \ -# RUN: | llvm-objdump -d - | FileCheck -check-prefix=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 |