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

David Greene via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 10:13:16 PDT 2019


greened added a comment.

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.


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