[PATCH] D41225: [RISCV] enable emission of alias instructions by default

Mario Werner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 00:40:05 PST 2017


niosHD created this revision.
niosHD added a reviewer: asb.
Herald added subscribers: sabuasal, apazos, jordy.potman.lists, simoncook, johnrusso, rbar.

This patch switches the default for `-riscv-no-aliases` to false
and updates all affected MC and CodeGen tests. As recommended in
https://reviews.llvm.org/D41071, MC tests use the canonical instructions and the CodeGen
tests use the aliases.

Additionally, for the f and d instructions with rounding mode,
the tests for the aliased versions are moved and tightened such
that they can actually detect if alias emission is enabled.
(see https://reviews.llvm.org/D40902 for context)


https://reviews.llvm.org/D41225

Files:
  lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp
  test/CodeGen/RISCV/addc-adde-sube-subc.ll
  test/CodeGen/RISCV/alloca.ll
  test/CodeGen/RISCV/alu32.ll
  test/CodeGen/RISCV/bare-select.ll
  test/CodeGen/RISCV/blockaddress.ll
  test/CodeGen/RISCV/branch.ll
  test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
  test/CodeGen/RISCV/byval.ll
  test/CodeGen/RISCV/calling-conv-sext-zext.ll
  test/CodeGen/RISCV/calling-conv.ll
  test/CodeGen/RISCV/calls.ll
  test/CodeGen/RISCV/div.ll
  test/CodeGen/RISCV/fp128.ll
  test/CodeGen/RISCV/frame.ll
  test/CodeGen/RISCV/i32-icmp.ll
  test/CodeGen/RISCV/imm.ll
  test/CodeGen/RISCV/indirectbr.ll
  test/CodeGen/RISCV/jumptable.ll
  test/CodeGen/RISCV/mem.ll
  test/CodeGen/RISCV/mul.ll
  test/CodeGen/RISCV/rem.ll
  test/CodeGen/RISCV/rotl-rotr.ll
  test/CodeGen/RISCV/select-cc.ll
  test/CodeGen/RISCV/sext-zext-trunc.ll
  test/CodeGen/RISCV/shifts.ll
  test/CodeGen/RISCV/wide-mem.ll
  test/MC/RISCV/fixups.s
  test/MC/RISCV/priv-valid.s
  test/MC/RISCV/relocations.s
  test/MC/RISCV/rv32a-valid.s
  test/MC/RISCV/rv32c-only-valid.s
  test/MC/RISCV/rv32c-valid.s
  test/MC/RISCV/rv32d-valid.s
  test/MC/RISCV/rv32dc-valid.s
  test/MC/RISCV/rv32f-valid.s
  test/MC/RISCV/rv32fc-valid.s
  test/MC/RISCV/rv32i-aliases-invalid.s
  test/MC/RISCV/rv32i-aliases-valid.s
  test/MC/RISCV/rv32i-valid.s
  test/MC/RISCV/rv32m-valid.s
  test/MC/RISCV/rv64a-valid.s
  test/MC/RISCV/rv64c-valid.s
  test/MC/RISCV/rv64d-aliases-valid.s
  test/MC/RISCV/rv64d-valid.s
  test/MC/RISCV/rv64f-aliases-valid.s
  test/MC/RISCV/rv64f-valid.s
  test/MC/RISCV/rv64i-aliases-invalid.s
  test/MC/RISCV/rv64i-aliases-valid.s
  test/MC/RISCV/rv64i-valid.s
  test/MC/RISCV/rv64m-valid.s
  test/MC/RISCV/rvd-aliases-valid.s
  test/MC/RISCV/rvf-aliases-valid.s
  test/MC/RISCV/rvi-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41225.126905.patch
Type: text/x-patch
Size: 124926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171214/4802923e/attachment.bin>


More information about the llvm-commits mailing list