From 40fc3de369a32131047753a72de4444202587e76 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 3 Apr 2020 16:14:47 +0100 Subject: [PATCH] [X86] Fix weak global label issue reported on D77354 --- llvm/test/CodeGen/X86/linux-preemption.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/test/CodeGen/X86/linux-preemption.ll b/llvm/test/CodeGen/X86/linux-preemption.ll index 6df7914..7d22b75 100644 --- a/llvm/test/CodeGen/X86/linux-preemption.ll +++ b/llvm/test/CodeGen/X86/linux-preemption.ll @@ -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() { -- 2.7.4