1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/MC/RISCV/rv64d-aliases-valid.s
Alex Bradbury af453b57a3 [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
2017-12-15 09:47:01 +00:00

28 lines
1.1 KiB
ArmAsm

# RUN: llvm-mc %s -triple=riscv64 -mattr=+d -riscv-no-aliases \
# RUN: | FileCheck -check-prefix=CHECK-INST %s
# RUN: llvm-mc %s -triple=riscv64 -mattr=+d \
# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+d < %s \
# RUN: | llvm-objdump -d -mattr=+d -riscv-no-aliases - \
# RUN: | FileCheck -check-prefix=CHECK-INST %s
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+d < %s \
# RUN: | llvm-objdump -d -mattr=+d - \
# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
##===----------------------------------------------------------------------===##
## Aliases which omit the rounding mode.
##===----------------------------------------------------------------------===##
# CHECK-INST: fcvt.l.d a0, ft0, dyn
# CHECK-ALIAS: fcvt.l.d a0, ft0{{[[:space:]]}}
fcvt.l.d a0, ft0
# CHECK-INST: fcvt.lu.d a1, ft1, dyn
# CHECK-ALIAS: fcvt.lu.d a1, ft1{{[[:space:]]}}
fcvt.lu.d a1, ft1
# CHECK-INST: fcvt.d.l ft3, a3, dyn
# CHECK-ALIAS: fcvt.d.l ft3, a3{{[[:space:]]}}
fcvt.d.l ft3, a3
# CHECK-INST: fcvt.d.lu ft4, a4, dyn
# CHECK-ALIAS: fcvt.d.lu ft4, a4{{[[:space:]]}}
fcvt.d.lu ft4, a4