summaryrefslogtreecommitdiffstats
path: root/binutils-2.17/gas/testsuite/gas/hppa/basic/shift3.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.17/gas/testsuite/gas/hppa/basic/shift3.s')
-rw-r--r--binutils-2.17/gas/testsuite/gas/hppa/basic/shift3.s26
1 files changed, 26 insertions, 0 deletions
diff --git a/binutils-2.17/gas/testsuite/gas/hppa/basic/shift3.s b/binutils-2.17/gas/testsuite/gas/hppa/basic/shift3.s
new file mode 100644
index 00000000..0d000386
--- /dev/null
+++ b/binutils-2.17/gas/testsuite/gas/hppa/basic/shift3.s
@@ -0,0 +1,26 @@
+ .LEVEL 2.0
+ .code
+ .align 4
+; PA 2.0 shift right instruction tests.
+;
+; 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.
+ shrpd,* %r4,%r5,%sar,%r6
+ shrpd,*= %r4,%r5,%sar,%r6
+ shrpd,*< %r4,%r5,%sar,%r6
+ shrpd,*od %r4,%r5,%sar,%r6
+ shrpd,*tr %r4,%r5,%cr11,%r6
+ shrpd,*<> %r4,%r5,%cr11,%r6
+ shrpd,*>= %r4,%r5,%cr11,%r6
+ shrpd,*ev %r4,%r5,%cr11,%r6
+
+ shrpd,* %r4,%r5,5,%r6
+ shrpd,*= %r4,%r5,5,%r6
+ shrpd,*< %r4,%r5,5,%r6
+ shrpd,*od %r4,%r5,5,%r6
+ shrpd,*tr %r4,%r5,5,%r6
+ shrpd,*<> %r4,%r5,5,%r6
+ shrpd,*>= %r4,%r5,5,%r6
+ shrpd,*ev %r4,%r5,5,%r6
+