2017-05-17 21:05:50 +01:00
|
|
|
.text
|
|
|
|
foo:
|
|
|
|
# leaq of OPENSSL_ia32cap_P is supported.
|
|
|
|
leaq OPENSSL_ia32cap_P(%rip), %r11
|
|
|
|
|
|
|
|
# As is the equivalent GOTPCREL movq.
|
|
|
|
movq OPENSSL_ia32cap_P@GOTPCREL(%rip), %r12
|
|
|
|
|
|
|
|
# Test that GOTPCREL accesses get translated. They are handled
|
|
|
|
# differently for local and external symbols.
|
|
|
|
|
|
|
|
pushq stderr@GOTPCREL(%rip)
|
|
|
|
pushq foo@GOTPCREL(%rip)
|
|
|
|
|
|
|
|
movq stderr@GOTPCREL(%rip), %r11
|
|
|
|
movq foo@GOTPCREL(%rip), %r11
|
|
|
|
|
|
|
|
vmovq stderr@GOTPCREL(%rip), %xmm0
|
|
|
|
vmovq foo@GOTPCREL(%rip), %xmm0
|
|
|
|
|
|
|
|
cmoveq stderr@GOTPCREL(%rip), %r11
|
|
|
|
cmoveq foo@GOTPCREL(%rip), %r11
|
|
|
|
cmovneq stderr@GOTPCREL(%rip), %r11
|
|
|
|
cmovneq foo@GOTPCREL(%rip), %r11
|
|
|
|
|
2017-09-18 17:29:23 +01:00
|
|
|
movsd foo@GOTPCREL(%rip), %xmm0
|
|
|
|
vmovsd foo@GOTPCREL(%rip), %xmm0
|
|
|
|
|
2017-09-18 19:51:27 +01:00
|
|
|
# movsd without arguments should be left as-is.
|
|
|
|
movsd
|
|
|
|
|
2017-05-17 21:05:50 +01:00
|
|
|
# Synthesized symbols do not use the GOT.
|
|
|
|
movq BORINGSSL_bcm_text_start@GOTPCREL(%rip), %r11
|
|
|
|
movq foobar_bss_get@GOTPCREL(%rip), %r11
|
|
|
|
movq OPENSSL_ia32cap_get@GOTPCREL(%rip), %r11
|
|
|
|
|
2018-01-02 20:03:55 +00:00
|
|
|
# Transforming moves run the transform in-place after the load.
|
|
|
|
vpbroadcastq stderr@GOTPCREL(%rip), %xmm0
|
|
|
|
vpbroadcastq foo@GOTPCREL(%rip), %xmm0
|
|
|
|
|
2017-05-17 21:05:50 +01:00
|
|
|
.comm foobar,64,32
|