From 398e5f03a72499ece0011a30b7a47e472941e91f Mon Sep 17 00:00:00 2001 From: Sameer AbuAsal Date: Fri, 6 Apr 2018 18:27:45 +0000 Subject: [PATCH] [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 --- test/MC/RISCV/cnop.s | 3 ++- test/MC/RISCV/rv32c-only-valid.s | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/MC/RISCV/cnop.s b/test/MC/RISCV/cnop.s index ff2acee8868..2a2755f55e1 100644 --- a/test/MC/RISCV/cnop.s +++ b/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/test/MC/RISCV/rv32c-only-valid.s b/test/MC/RISCV/rv32c-only-valid.s index 9767ebc6161..01700bcd575 100644 --- a/test/MC/RISCV/rv32c-only-valid.s +++ b/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