summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/hppa/basic/copr.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/hppa/basic/copr.s')
-rw-r--r--gas/testsuite/gas/hppa/basic/copr.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/gas/hppa/basic/copr.s b/gas/testsuite/gas/hppa/basic/copr.s
new file mode 100644
index 00000000000..77cb6a271fa
--- /dev/null
+++ b/gas/testsuite/gas/hppa/basic/copr.s
@@ -0,0 +1,19 @@
+ .SPACE $PRIVATE$
+ .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
+ .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
+ .SPACE $TEXT$
+ .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
+ .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
+
+ .SPACE $TEXT$
+ .SUBSPA $CODE$
+
+ .align 4
+; We could/should test some of the corner cases for register and
+; immediate fields. We should also check the assorted field
+; selectors to make sure they're handled correctly.
+copr_tests:
+ copr,4,5
+ copr,4,115
+ copr,4,5,n
+ copr,4,115,n