summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSameer AbuAsal <sabuasal@codeaurora.org>2018-04-06 18:27:45 +0000
committerSameer AbuAsal <sabuasal@codeaurora.org>2018-04-06 18:27:45 +0000
commit181501a6b95116f87bb850dc410b855d7ebedc0b (patch)
tree9dfe057170ea94939e7e6ec9f4bd37d5679fcc0a
parentae31223ba715f32035f22fb27c44fdf64776848b (diff)
downloadbcm5719-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.s3
-rw-r--r--llvm/test/MC/RISCV/rv32c-only-valid.s4
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
OpenPOWER on IntegriCloud