Skip to content

Commit

Permalink
[SystemZ] Move new test into existing CodeGen test. (#73230)
Browse files Browse the repository at this point in the history
The test for emitted alignments is better placed in CodeGen.
  • Loading branch information
JonPsson1 committed Nov 23, 2023
1 parent ce1b243 commit 521b468
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
13 changes: 13 additions & 0 deletions clang/test/CodeGen/SystemZ/align-systemz.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ void func (void)
s = es;
}

// Test that a global variable with an incomplete type gets the minimum
// alignment of 2 per the ABI if no alignment was specified by user.
//
// CHECK-DAG: @VarNoAl {{.*}} align 2
// CHECK-DAG: @VarExplAl1 {{.*}} align 1
// CHECK-DAG: @VarExplAl4 {{.*}} align 4
struct incomplete_ty;
extern struct incomplete_ty VarNoAl;
extern struct incomplete_ty __attribute__((aligned(1))) VarExplAl1;
extern struct incomplete_ty __attribute__((aligned(4))) VarExplAl4;
struct incomplete_ty *fun0 (void) { return &VarNoAl; }
struct incomplete_ty *fun1 (void) { return &VarExplAl1; }
struct incomplete_ty *fun2 (void) { return &VarExplAl4; }

// The SystemZ ABI aligns __int128_t to only eight bytes.

Expand Down
32 changes: 0 additions & 32 deletions clang/test/Driver/systemz-alignment.c

This file was deleted.

0 comments on commit 521b468

Please sign in to comment.