[PATCH] D43328: [RISCV] Update MC compression tests

Sameer AbuAsal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 19:53:55 PST 2018


sabuasal updated this revision to Diff 136673.
sabuasal added a comment.

address comments from @asb

moving test update to relevant patch like suggested.


https://reviews.llvm.org/D43328

Files:
  test/MC/RISCV/cnop.s
  test/MC/RISCV/rv32c-only-valid.s


Index: test/MC/RISCV/rv32c-only-valid.s
===================================================================
--- test/MC/RISCV/rv32c-only-valid.s
+++ 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
Index: test/MC/RISCV/cnop.s
===================================================================
--- test/MC/RISCV/cnop.s
+++ test/MC/RISCV/cnop.s
@@ -10,8 +10,9 @@
        .type   alpha, at 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43328.136673.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180302/5a6615cf/attachment.bin>


More information about the llvm-commits mailing list