[PATCH] D68230: [UpdateCCTestChecks] Allow asm in output with --allow-asm

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 10:22:45 PDT 2019


lebedev.ri added a comment.

In D68230#1688415 <https://reviews.llvm.org/D68230#1688415>, @greened wrote:

> In D68230#1688351 <https://reviews.llvm.org/D68230#1688351>, @xbolva00 wrote:
>
> > Can you show simple example? Is it something like
> >
> > int foo(void) {
> >  ; CHECK: xor eax, eax
> >  return 0;
> >  }
> >
> > Than great, +1
>
>
> Yes, that's exactly right.  Take some C/C++ source and match against expected assembly from clang.  Editing the result is generally required to make the checks less brittle but that's true of all these check generation scripts.


For the record, is this for the use in upstream clang tests?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68230





More information about the llvm-commits mailing list