[llvm] b1509d0 - [AIX] XFAIL CodeGen/Generic/externally_available.ll

Jinsong Ji via llvm-commits llvm-commits at lists.llvm.org
Thu May 13 06:25:09 PDT 2021


Author: Jinsong Ji
Date: 2021-05-13T13:24:48Z
New Revision: b1509d067e426bb8451bba789e34c4e65a168aba

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

LOG: [AIX] XFAIL CodeGen/Generic/externally_available.ll

    Globals with “available_externally” linkage should never be emitted into the
    object file corresponding to the LLVM module.

    However, AIX system assembler default print error for undefined reference .
    so AIX chose to emit the available externally symbols into .s,
    so that users won't run into errors in situations like:

    clang -target powerpc-ibm-aix -xc -<<<$'extern inline
    __attribute__((__gnu_inline__)) void foo() {}\nvoid bar() { foo(); }' -O
    -Xclang -disable-llvm-passes

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D102377

Added: 
    

Modified: 
    llvm/test/CodeGen/Generic/externally_available.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/Generic/externally_available.ll b/llvm/test/CodeGen/Generic/externally_available.ll
index 2376bc739927..5bf31c2f0276 100644
--- a/llvm/test/CodeGen/Generic/externally_available.ll
+++ b/llvm/test/CodeGen/Generic/externally_available.ll
@@ -1,5 +1,11 @@
 ; RUN: llc -verify-machine-dom-info < %s | not grep test_
 
+; XFAIL: aix
+; AIX system assembler default print error for undefined reference .
+; so AIX chose to emit the available externally symbols into .s,
+; so that users won't run into errors in situations like:
+; clang -target powerpc-ibm-aix -xc -<<<$'extern inline __attribute__((__gnu_inline__)) void foo() {}\nvoid bar() { foo(); }' -O -Xclang -disable-llvm-passes
+
 ; test_function should not be emitted to the .s file.
 define available_externally i32 @test_function() {
   ret i32 4


        


More information about the llvm-commits mailing list