[llvm] 40fc3de - [X86] Fix weak global label issue reported on D77354

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 08:15:41 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-03T16:15:24+01:00
New Revision: 40fc3de369a32131047753a72de4444202587e76

URL: https://github.com/llvm/llvm-project/commit/40fc3de369a32131047753a72de4444202587e76
DIFF: https://github.com/llvm/llvm-project/commit/40fc3de369a32131047753a72de4444202587e76.diff

LOG: [X86] Fix weak global label issue reported on D77354

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/linux-preemption.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/linux-preemption.ll b/llvm/test/CodeGen/X86/linux-preemption.ll
index 6df791456648..7d22b7513218 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 at GOTPCREL(%rip), %rax
-; STATIC ;ADD_LABEL_BACK; movq weak_preemptable_global at GOTPCREL, %rax
-; CHECK32 ;ADD_LABEL_BACK; movl weak_preemptable_global at GOT(%eax), %eax
+; CHECK: movq weak_preemptable_global at GOTPCREL(%rip), %rax
+; STATIC: movl $weak_preemptable_global, %eax
+; CHECK32: movl weak_preemptable_global at GOT(%eax), %eax
 
 @external_preemptable_global = external dso_preemptable global i32
 define i32* @get_external_preemptable_global() {


        


More information about the llvm-commits mailing list