Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / neon-aapcs-align.c
blob0680f23045375155388206b1183f21cf26c49d56
1 // RUN: %clang_cc1 -triple armv7a-none-eabi -target-feature +neon -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=AAPCS
2 // RUN: %clang_cc1 -triple armv7a-none-gnueabi -target-feature +neon -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=AAPCS
3 // RUN: %clang_cc1 -triple armv7a-none-freebsd -target-feature +neon -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=AAPCS
5 // RUN: %clang_cc1 -triple armv7a-apple-ios -target-feature +neon -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=DEFAULT
6 // RUN: %clang_cc1 -triple armv7a-none-android -target-feature +neon -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=DEFAULT
7 // RUN: %clang_cc1 -triple armv7a-none-androideabi -target-feature +neon -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=DEFAULT
9 // REQUIRES: aarch64-registered-target || arm-registered-target
11 #include <arm_neon.h>
12 // Neon types have 64-bit alignment
13 int32x4_t gl_b;
14 void t3(int32x4_t *src) {
15 // CHECK: @t3
16 gl_b = *src;
17 // AAPCS: store <4 x i32> {{%.*}}, ptr @gl_b, align 8
18 // DEFAULT: store <4 x i32> {{%.*}}, ptr @gl_b, align 16