aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/sh/pcrel.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/sh/pcrel.s')
-rw-r--r--gas/testsuite/gas/sh/pcrel.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sh/pcrel.s b/gas/testsuite/gas/sh/pcrel.s
new file mode 100644
index 0000000..d2df07a
--- /dev/null
+++ b/gas/testsuite/gas/sh/pcrel.s
@@ -0,0 +1,14 @@
+ .text
+
+ .p2align 2
+code:
+ mov.l litpool, r1
+ mov.l @(14,pc), r1
+ mova @(litpool-.,pc), r0
+ mov.l @r0,r1
+ mov.l @(litpool-.,pc), r1
+ bsrf r1
+ nop
+ nop
+litpool:
+ .long code - .