summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/RISCV
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2018-06-20 18:42:25 +0000
committerAlex Bradbury <asb@lowrisc.org>2018-06-20 18:42:25 +0000
commitfafdebcfcb621e213edefadb84766e196b0c14b6 (patch)
treecf0b66fc4ad3eb531130eb69996c77d8756a7b6f /llvm/test/MC/RISCV
parent6f78be66e6182268d44ec44304abfbbd79d96d13 (diff)
downloadbcm5719-llvm-fafdebcfcb621e213edefadb84766e196b0c14b6.tar.gz
bcm5719-llvm-fafdebcfcb621e213edefadb84766e196b0c14b6.zip
[RISCV] Accept fmv.s.x and fmv.x.s as mnemonic aliases for fmv.w.x and fmv.x.w
These instructions were renamed in version 2.2 of the user-level ISA spec, but the old name should also be accepted by standard tools. llvm-svn: 335154
Diffstat (limited to 'llvm/test/MC/RISCV')
-rw-r--r--llvm/test/MC/RISCV/rvf-aliases-valid.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/MC/RISCV/rvf-aliases-valid.s b/llvm/test/MC/RISCV/rvf-aliases-valid.s
index c6da9b39909..f22b3cc7274 100644
--- a/llvm/test/MC/RISCV/rvf-aliases-valid.s
+++ b/llvm/test/MC/RISCV/rvf-aliases-valid.s
@@ -87,6 +87,13 @@ fsflagsi x14, 0x1d
# CHECK-ALIAS: fsflagsi 28
fsflagsi 0x1c
+# CHECK-INST: fmv.x.w a2, fs7
+# CHECK-ALIAS: fmv.x.w a2, fs7
+fmv.x.s a2, fs7
+# CHECK-INST: fmv.w.x ft1, a6
+# CHECK-ALIAS: fmv.w.x ft1, a6
+fmv.s.x ft1, a6
+
##===----------------------------------------------------------------------===##
## Aliases which omit the rounding mode.
##===----------------------------------------------------------------------===##
OpenPOWER on IntegriCloud