[PATCH] D67125: [PowerPC][AIX] Adds support for writing the data section in object files

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 08:10:51 PDT 2019


daltenty added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll:1
 ; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck %s
 ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s
----------------
nit: I think it's worth while to add a comment to the beginning of this test indicating what we are hoping to test (i.e. initialized data). We are starting to have a lot of overlapping test cases, and for simplicity it would be nice to state the intent up front.


================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll:21
 
+ at a = common global i32 0, align 4
+ at b = common global i64 0, align 8
----------------
I'm a bit confused why we are adding this, we don't refer to them in the object writing case. If it's to make sure we don't start emitting uninitialized data into .text shouldn't we have put some check-not's in?


================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll:71
+
+; CHECK:      .comm   a,4,2
+; CHECK-NEXT: .comm   b,8,3
----------------
Do we want to check this? We currently don't in the object writing case (and this overlaps with aix-xcoff-common.ll).


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67125/new/

https://reviews.llvm.org/D67125





More information about the llvm-commits mailing list