summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-06-12 17:52:05 +0000
committerSimon Atanasyan <simon@atanasyan.com>2019-06-12 17:52:05 +0000
commitefc0d1a29801adc95450b9a2129f213d15c23164 (patch)
tree84210b1e98b769c01dc34110932821f260c4d083 /llvm/test
parent5b99928ba88a3331ad4626b401c8f4ffdf3b1b99 (diff)
downloadbcm5719-llvm-efc0d1a29801adc95450b9a2129f213d15c23164.tar.gz
bcm5719-llvm-efc0d1a29801adc95450b9a2129f213d15c23164.zip
[Mips] Add s.d instruction alias for Mips1
Add support for s.d instruction for Mips1 which expands into two swc1 instructions. Patch by Mirko Brkusanin. Differential Revision: https://reviews.llvm.org/D63199 llvm-svn: 363184
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/Mips/mips1/sd.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips1/sd.s b/llvm/test/MC/Mips/mips1/sd.s
new file mode 100644
index 00000000000..de2065bc899
--- /dev/null
+++ b/llvm/test/MC/Mips/mips1/sd.s
@@ -0,0 +1,13 @@
+# RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips1 %s -o - \
+# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=MIPS1-EB
+# RUN: llvm-mc -filetype=obj -triple mipsel -mcpu=mips1 %s -o - \
+# RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=MIPS1-EL
+
+# Check if s.d instruction alias is suported on Mips1.
+
+# MIPS1-EB: 0: e4 c1 00 00 swc1 $f1, 0($6)
+# MIPS1-EB: 4: e4 c0 00 04 swc1 $f0, 4($6)
+
+# MIPS1-EL: 0: 00 00 c0 e4 swc1 $f0, 0($6)
+# MIPS1-EL: 4: 04 00 c1 e4 swc1 $f1, 4($6)
+s.d $f0, 0($6)
OpenPOWER on IntegriCloud