brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 25acb6a Raw
27 lines · c
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir2// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR3// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-llvm %s -o %t-cir.ll4// RUN: FileCheck --input-file=%t-cir.ll %s -check-prefix=LLVM5// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -emit-llvm %s -o %t.ll6// RUN: FileCheck --input-file=%t.ll %s -check-prefix=OGCG7 8__attribute((aligned(32))) float a[128];9union {int a[4]; __attribute((aligned(32))) float b[4];} b;10 11// CIR: @a = #cir.zero {{.*}}alignment = 3212// CIR: @b = #cir.zero{{.*}}alignment = 3213 14// LLVM: @a = {{.*}}zeroinitializer, align 3215// LLVM: @b = {{.*}}zeroinitializer, align 3216 17// OGCG: @a = {{.*}}zeroinitializer, align 3218// OGCG: @b = {{.*}}zeroinitializer, align 3219 20long long int test5[1024];21// CIR: @test5 = #cir.zero {{.*}}alignment = 1622// LLVM: @test5 = {{.*}}global [1024 x i64] zeroinitializer, align 1623// OGCG: @test5 = {{.*}}global [1024 x i64] zeroinitializer, align 1624 25// TODO: Add more test cases from clang/test/CodeGen/alignment.c when we have26//       implemented compound literal expression support.27