1 // RUN: %clang_cc1 -triple thumbv7-apple-darwin \ 2 // RUN: -target-abi apcs-gnu \ 3 // RUN: -target-cpu cortex-a8 \ 4 // RUN: -mfloat-abi soft \ 5 // RUN: -target-feature +soft-float-abi \ 6 // RUN: -ffreestanding \ 7 // RUN: -emit-llvm -w -o - %s | FileCheck %s 8 9 #include <arm_neon.h> 10 11 // Radar 9311427: Check that alignment specifier is used in Neon load/store 12 // intrinsics. 13 typedef float AlignedAddr __attribute__ ((aligned (16))); 14 void t1(AlignedAddr *addr1, AlignedAddr *addr2) { 15 // CHECK: call <4 x float> @llvm.arm.neon.vld1.v4f32(i8* %{{.*}}, i32 16) 16 float32x4_t a = vld1q_f32(addr1); 17 // CHECK: call void @llvm.arm.neon.vst1.v4f32(i8* %{{.*}}, <4 x float> %{{.*}}, i32 16) 18 vst1q_f32(addr2, a); 19 } 20