[PATCH] D17999: Rewrite ARM & AArch64 tests to check LLVM IR rather than assembly

Tim Northover via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 9 12:41:44 PST 2016


On 9 March 2016 at 11:12, Sanjay Patel <spatel at rotateright.com> wrote:
> Nothing to do with the patch itself (although it looks great and thanks!) - is the CHECK line generator script available somewhere? I'd love to be able to use that.

It's horribly hacky and fragile, but what I've got should be attached
here. Particular issues are:

  * Spotting where to put CHECK lines in the C file is bad and relies
on '{' being on the same line as the definition.
  * If a function argument name is an extension of a definition, the
2-pass substitution will go wrong. It really should actually look for
%-based tokens rather than just text.
  * No handling of basic blocks as values.

But, it mostly did the trick so it's not useless.

Cheers.

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make_test.py
Type: text/x-python-script
Size: 2552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160309/c1847100/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make_test.sh
Type: application/x-sh
Size: 439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160309/c1847100/attachment.sh>


More information about the cfe-commits mailing list