[PATCH] D81104: [XCOFF][AIX] report_fatal_error when an overflow section is needed
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 13:51:14 PDT 2020
hubert.reinterpretcast added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-reloc-overflow.ll:6
+
+; RUN: not --crash llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff \
+; RUN: -mcpu=pwr4 -mattr=-altivec -filetype=obj -o %t.o 2>&1 < %s | \
----------------
jasonliu wrote:
> daltenty wrote:
> > We're able to sed and friends in tests, so I think we can do an expansion based on @hubert.reinterpretcast original preprocessor example. Replacing the repeated line with 'A' and using something like this seems like it would do the trick:
> >
> > ```
> > sed "s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;s/A/ABA/g;" %s| tr B "\n" | sed "s/A/call\ void\ bitcast\ \(void (...)*\ @foo\ to\ void\ ()*)()/g"|llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr4 -mattr=-altivec -filetype=obj -o %t.o
> > ```
> Thanks for the suggestion.
> I could not 'sed' the same file that the 'sed' command resides. So I created an input file instead.
Would `grep -v` have helped there?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81104/new/
https://reviews.llvm.org/D81104
More information about the llvm-commits
mailing list