diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-12-15 09:47:01 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-12-15 09:47:01 +0000 |
commit | ff43d393382e7610f425bde28a57b987d068042e (patch) | |
tree | 1528a2b6c85628b37e6e9a9d275cab2ffe841159 /test/MC/RISCV/rv32a-valid.s | |
parent | f1b0fdfb7020d80efd4c1e7358d13c287b4f3b12 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/RISCV/rv32a-valid.s')
-rw-r--r-- | test/MC/RISCV/rv32a-valid.s | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/MC/RISCV/rv32a-valid.s b/test/MC/RISCV/rv32a-valid.s index cf94218a94e..fe53fab80ad 100644 --- a/test/MC/RISCV/rv32a-valid.s +++ b/test/MC/RISCV/rv32a-valid.s @@ -1,11 +1,13 @@ -# RUN: llvm-mc %s -triple=riscv32 -mattr=+a -show-encoding \ +# RUN: llvm-mc %s -triple=riscv32 -mattr=+a -riscv-no-aliases -show-encoding \ # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s -# RUN: llvm-mc %s -triple=riscv64 -mattr=+a -show-encoding \ +# RUN: llvm-mc %s -triple=riscv64 -mattr=+a -riscv-no-aliases -show-encoding \ # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+a < %s \ -# RUN: | llvm-objdump -mattr=+a -d - | FileCheck -check-prefix=CHECK-INST %s +# RUN: | llvm-objdump -mattr=+a -riscv-no-aliases -d - \ +# RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+a < %s \ -# RUN: | llvm-objdump -mattr=+a -d - | FileCheck -check-prefix=CHECK-INST %s +# RUN: | llvm-objdump -mattr=+a -riscv-no-aliases -d - \ +# RUN: | FileCheck -check-prefix=CHECK-INST %s # CHECK-INST: lr.w t0, (t1) # CHECK: encoding: [0xaf,0x22,0x03,0x10] |