summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/mips/micromips-branch-alias.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite/binutils-all/mips/micromips-branch-alias.s')
-rw-r--r--binutils/testsuite/binutils-all/mips/micromips-branch-alias.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/mips/micromips-branch-alias.s b/binutils/testsuite/binutils-all/mips/micromips-branch-alias.s
new file mode 100644
index 00000000000..3d27bb47178
--- /dev/null
+++ b/binutils/testsuite/binutils-all/mips/micromips-branch-alias.s
@@ -0,0 +1,17 @@
+ .text
+ .set mips32r3
+ .set noat
+ .set noreorder
+ .set micromips
+foo:
+ beq $0, $0, . + 4
+ bgez $0, . + 4
+ beqzc $0, . + 4
+ beqz $1, . + 4
+ bnez $1, . + 4
+ bgezal $0, . + 4
+ bgezals $0, . + 4
+
+# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .align 4, 0
+ .space 16