diff options
author | dim <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
commit | 110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab (patch) | |
tree | 64a10f4c4154739d4a8191d7e1b52ce497f4ebd6 /test/CodeGen/arm-vector-align.c | |
parent | a0fb00f9837bd0d2e5948f16f6a6b82a7a628f51 (diff) | |
download | FreeBSD-src-110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab.zip FreeBSD-src-110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab.tar.gz |
Vendor import of clang trunk r130700:
http://llvm.org/svn/llvm-project/cfe/trunk@130700
Diffstat (limited to 'test/CodeGen/arm-vector-align.c')
-rw-r--r-- | test/CodeGen/arm-vector-align.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/arm-vector-align.c b/test/CodeGen/arm-vector-align.c new file mode 100644 index 0000000..c1119cb --- /dev/null +++ b/test/CodeGen/arm-vector-align.c @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple thumbv7-apple-darwin \ +// RUN: -target-abi apcs-gnu \ +// RUN: -target-cpu cortex-a8 \ +// RUN: -mfloat-abi soft \ +// RUN: -target-feature +soft-float-abi \ +// RUN: -ffreestanding \ +// RUN: -emit-llvm -w -o - %s | FileCheck %s + +#include <arm_neon.h> + +// Radar 9311427: Check that alignment specifier is used in Neon load/store +// intrinsics. +typedef float AlignedAddr __attribute__ ((aligned (16))); +void t1(AlignedAddr *addr1, AlignedAddr *addr2) { +// CHECK: call <4 x float> @llvm.arm.neon.vld1.v4f32(i8* %{{.*}}, i32 16) + float32x4_t a = vld1q_f32(addr1); +// CHECK: call void @llvm.arm.neon.vst1.v4f32(i8* %{{.*}}, <4 x float> %{{.*}}, i32 16) + vst1q_f32(addr2, a); +} |