34 lines · c
1// REQUIRES: powerpc-registered-target2// RUN: %clang_cc1 -triple powerpc-unknown-aix -target-feature +altivec -target-cpu pwr7 -emit-llvm -o - %s | \3// RUN: FileCheck %s4// RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-feature +altivec -target-cpu pwr7 -emit-llvm -o - %s | \5// RUN: FileCheck %s6 7typedef vector int __attribute__((aligned(8))) UnderAlignedVI;8 9vector int g32 __attribute__((aligned(32)));10vector int g8 __attribute__((aligned(8)));11UnderAlignedVI TypedefedGlobal;12 13int escape(vector int*);14 15int local32(void) {16 vector int l32 __attribute__((aligned(32)));17 return escape(&l32);18}19 20int local8(void) {21 vector int l8 __attribute__((aligned(8)));22 return escape(&l8);23}24 25// CHECK: @g32 = global <4 x i32> zeroinitializer, align 3226// CHECK: @g8 = global <4 x i32> zeroinitializer, align 1627// CHECK: @TypedefedGlobal = global <4 x i32> zeroinitializer, align 828 29// CHECK-LABEL: @local3230// CHECK: %l32 = alloca <4 x i32>, align 3231//32// CHECK-LABEL: @local833// CHECK: %l8 = alloca <4 x i32>, align 1634