aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/no-plt-check1.S
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/no-plt-check1.S')
-rw-r--r--ld/testsuite/ld-x86-64/no-plt-check1.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/no-plt-check1.S b/ld/testsuite/ld-x86-64/no-plt-check1.S
index 5bacb3f..61d32b1 100644
--- a/ld/testsuite/ld-x86-64/no-plt-check1.S
+++ b/ld/testsuite/ld-x86-64/no-plt-check1.S
@@ -10,6 +10,13 @@ check:
call *get_func@GOTPCREL(%rip)
cmpq func@GOTPCREL(%rip), %rax
jne .L3
+#ifdef __LP64__
+ cmpq %rax, func_p(%rip)
+#else
+ rex
+ cmpl %eax, func_p(%rip)
+#endif
+ jne .L3
call *func@GOTPCREL(%rip)
cmpl $305419896, %eax
jne .L3