hubert.reinterpretcast accepted this revision.
hubert.reinterpretcast added a comment.

LGTM with comment (not blocking).



================
Comment at: clang/test/CodeGen/PowerPC/atomic-alignment.c:1
+// REQUIRES: powerpc-registered-target
+// RUN: %clang_cc1 -verify -triple powerpc-unkonwn-unknown -emit-llvm -o - %s 
| \
----------------
hubert.reinterpretcast wrote:
> I am not sure about having a `CodeGen` test for this when a `-fsyntax-only` 
> `Layout` test would do. I believe that also removes the need for 
> `powerpc-registered-target`.
I will note that there is a concept of "preferred alignment" or "complete 
object alignment" that may differ from "required alignment". A `CodeGen` test 
like this can miss issues if the "required alignment" is wrong but the 
"preferred alignment" or "complete object alignment" matches what is expected.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121441

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to