[PATCH] D121441: [PowerPC][NFC] Add atomic alignments and ops tests for powerpc
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 16 15:38:25 PDT 2022
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
More information about the cfe-commits
mailing list