aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/loongarch64
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite/binutils-all/loongarch64')
-rw-r--r--binutils/testsuite/binutils-all/loongarch64/dis-options-multi.d10
-rw-r--r--binutils/testsuite/binutils-all/loongarch64/dis-options-no-alises.d10
-rw-r--r--binutils/testsuite/binutils-all/loongarch64/dis-options-numeric.d10
-rw-r--r--binutils/testsuite/binutils-all/loongarch64/dis-options.s3
4 files changed, 33 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/loongarch64/dis-options-multi.d b/binutils/testsuite/binutils-all/loongarch64/dis-options-multi.d
new file mode 100644
index 0000000..2f34cb8
--- /dev/null
+++ b/binutils/testsuite/binutils-all/loongarch64/dis-options-multi.d
@@ -0,0 +1,10 @@
+#name: LoongArch disassembler options: multiple
+#source: dis-options.s
+#objdump: -d --no-show-raw-insn -M no-aliases,numeric
+
+#...
+Disassembly of section \.text:
+
+[0-9a-f]+ <\.text>:
+ [0-9a-f]+:[ ]+or[ ]+\$r4, \$r21, \$r0
+ [0-9a-f]+:[ ]+jirl[ ]+\$r0, \$r1, 0
diff --git a/binutils/testsuite/binutils-all/loongarch64/dis-options-no-alises.d b/binutils/testsuite/binutils-all/loongarch64/dis-options-no-alises.d
new file mode 100644
index 0000000..eb4ea62
--- /dev/null
+++ b/binutils/testsuite/binutils-all/loongarch64/dis-options-no-alises.d
@@ -0,0 +1,10 @@
+#name: LoongArch disassembler options: no-aliases
+#source: dis-options.s
+#objdump: -d --no-show-raw-insn -M no-aliases
+
+#...
+Disassembly of section \.text:
+
+[0-9a-f]+ <\.text>:
+ [0-9a-f]+:[ ]+or[ ]+\$a0, \$r21, \$zero
+ [0-9a-f]+:[ ]+jirl[ ]+\$zero, \$ra, 0
diff --git a/binutils/testsuite/binutils-all/loongarch64/dis-options-numeric.d b/binutils/testsuite/binutils-all/loongarch64/dis-options-numeric.d
new file mode 100644
index 0000000..e669cef
--- /dev/null
+++ b/binutils/testsuite/binutils-all/loongarch64/dis-options-numeric.d
@@ -0,0 +1,10 @@
+#name: LoongArch disassembler options: numeric
+#source: dis-options.s
+#objdump: -d --no-show-raw-insn -M numeric
+
+#...
+Disassembly of section \.text:
+
+[0-9a-f]+ <\.text>:
+ [0-9a-f]+:[ ]+move[ ]+\$r4, \$r21
+ [0-9a-f]+:[ ]+ret
diff --git a/binutils/testsuite/binutils-all/loongarch64/dis-options.s b/binutils/testsuite/binutils-all/loongarch64/dis-options.s
new file mode 100644
index 0000000..a3a4469
--- /dev/null
+++ b/binutils/testsuite/binutils-all/loongarch64/dis-options.s
@@ -0,0 +1,3 @@
+.text
+ move $a0, $r21
+ ret