[X86] Fix weak global label issue reported on D77354

This commit is contained in:
Simon Pilgrim 2020-04-03 16:14:47 +01:00
parent 58c242e7b8
commit 40fc3de369
1 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,9 @@ define i32* @get_strong_preemptable_global() {
define i32* @get_weak_preemptable_global() {
ret i32* @weak_preemptable_global
}
; CHECK ;ADD_LABEL_BACK; movq weak_preemptable_global@GOTPCREL(%rip), %rax
; STATIC ;ADD_LABEL_BACK; movq weak_preemptable_global@GOTPCREL, %rax
; CHECK32 ;ADD_LABEL_BACK; movl weak_preemptable_global@GOT(%eax), %eax
; CHECK: movq weak_preemptable_global@GOTPCREL(%rip), %rax
; STATIC: movl $weak_preemptable_global, %eax
; CHECK32: movl weak_preemptable_global@GOT(%eax), %eax
@external_preemptable_global = external dso_preemptable global i32
define i32* @get_external_preemptable_global() {