summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/trap20.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/mips/trap20.s')
-rw-r--r--gas/testsuite/gas/mips/trap20.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/trap20.s b/gas/testsuite/gas/mips/trap20.s
new file mode 100644
index 00000000000..a56d6595693
--- /dev/null
+++ b/gas/testsuite/gas/mips/trap20.s
@@ -0,0 +1,18 @@
+# Source file used to test the 20-bit trap instructions
+foo:
+ teq $0,$3
+ teq $0,$3,1
+ tge $0,$3
+ tge $0,$3,3
+ tgeu $0,$3
+ tgeu $0,$3,7
+ tlt $0,$3
+ tlt $0,$3,31
+ tltu $0,$3
+ tltu $0,$3,255
+ tne $0,$3
+ tne $0,$3,1023
+
+# force some padding, to make objdump consistently report that there's some
+# here...
+ .space 8