aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr19609-1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr19609-1.s')
-rw-r--r--ld/testsuite/ld-x86-64/pr19609-1.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr19609-1.s b/ld/testsuite/ld-x86-64/pr19609-1.s
new file mode 100644
index 0000000..91cc130
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19609-1.s
@@ -0,0 +1,20 @@
+ .text
+ .weak bar
+ .globl _start
+ .type _start, @function
+_start:
+ cmp bar@GOTPCREL(%rip), %rax
+ cmp bar@GOTPCREL(%rip), %ecx
+ cmp bar@GOTPCREL(%rip), %r11
+ cmp bar@GOTPCREL(%rip), %r12d
+
+ mov bar@GOTPCREL(%rip), %rax
+ mov bar@GOTPCREL(%rip), %ecx
+ mov bar@GOTPCREL(%rip), %r11
+ mov bar@GOTPCREL(%rip), %r12d
+
+ test %rax, bar@GOTPCREL(%rip)
+ test %ecx, bar@GOTPCREL(%rip)
+ test %r11, bar@GOTPCREL(%rip)
+ test %r12d, bar@GOTPCREL(%rip)
+ .size _start, .-_start