[PATCH] D52564: [PPC64] Add test for toc-restore on recursive call.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 14:35:02 PDT 2018


MaskRay added inline comments.


================
Comment at: test/ELF/ppc64-toc-restore-recursive-call.s:41
+    addi 5, 3, -1
+    mulld 4, 4, 3
+    mr 3, 5
----------------
sfertile wrote:
> MaskRay wrote:
> > Are these extra operations (addi, mulld, ...) needed to make the test feel more authentic?
> essentially. Its from one of the unit tests I wrote to figure out how we could have a recursive function call that crossed module boundaries, so I needed some 'testable' behavior.
And I asked about this because I found that ppc64 tests tend to be verbose while tests of other architectures usually only contain the construction that is relevant in question and very few set up.

The way other tests are organized make them outstanding what are being tested while I the verbosity has the merit that they feel more natural (the context may help understanding). I was just asking, not really have an opinion on what should be favored...


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D52564





More information about the llvm-commits mailing list