summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2017-12-15 09:47:01 +0000
committerAlex Bradbury <asb@lowrisc.org>2017-12-15 09:47:01 +0000
commit59136ffab1b0b051d2b56a90b8fb86d5721ed0b5 (patch)
tree24622ca1fac71461163cdad8ee91cf5f9ab32caf /llvm/lib/Target
parent4b86d7904863b3d0e552db37f455fe76430e6d46 (diff)
downloadbcm5719-llvm-59136ffab1b0b051d2b56a90b8fb86d5721ed0b5.tar.gz
bcm5719-llvm-59136ffab1b0b051d2b56a90b8fb86d5721ed0b5.zip
[RISCV] Enable emission of alias instructions by default
This patch switches the default for -riscv-no-aliases to false and updates all affected MC and CodeGen tests. As recommended in 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 D40902 for context) Differential Revision: https://reviews.llvm.org/D41225 Patch by Mario Werner. llvm-svn: 320797
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp b/llvm/lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp
index d21c48ec65a..ff56fc5d90f 100644
--- a/llvm/lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp
+++ b/llvm/lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp
@@ -29,12 +29,10 @@ using namespace llvm;
#define PRINT_ALIAS_INSTR
#include "RISCVGenAsmWriter.inc"
-// Alias instruction emission is disabled by default. A subsequent patch will
-// change this default and fix all affected tests.
static cl::opt<bool>
NoAliases("riscv-no-aliases",
cl::desc("Disable the emission of assembler pseudo instructions"),
- cl::init(true),
+ cl::init(false),
cl::Hidden);
void RISCVInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
OpenPOWER on IntegriCloud