brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · b7c64f1 Raw
32 lines · plain
1; RUN: opt -aa-pipeline=basic-aa -passes=gvn -S < %s | FileCheck %s2; REQUIRES: arm-registered-target3 4target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"5 6; BasicAA should prove that these calls don't interfere, since we've7; specifically special cased exactly these two intrinsics in8; MemoryLocation::getForArgument.9 10; CHECK:      define <8 x i16> @test1(ptr %p, <8 x i16> %y) {11; CHECK-NEXT: entry:12; CHECK-NEXT:   %q = getelementptr i8, ptr %p, i64 1613; CHECK-NEXT:   %a = call <8 x i16> @llvm.arm.neon.vld1.v8i16.p0(ptr %p, i32 16) [[ATTR:#[0-9]+]]14; CHECK-NEXT:   call void @llvm.arm.neon.vst1.p0.v8i16(ptr %q, <8 x i16> %y, i32 16)15; CHECK-NEXT:   %c = add <8 x i16> %a, %a16define <8 x i16> @test1(ptr %p, <8 x i16> %y) {17entry:18  %q = getelementptr i8, ptr %p, i64 1619  %a = call <8 x i16> @llvm.arm.neon.vld1.v8i16.p0(ptr %p, i32 16) nounwind20  call void @llvm.arm.neon.vst1.p0.v8i16(ptr %q, <8 x i16> %y, i32 16)21  %b = call <8 x i16> @llvm.arm.neon.vld1.v8i16.p0(ptr %p, i32 16) nounwind22  %c = add <8 x i16> %a, %b23  ret <8 x i16> %c24}25 26declare <8 x i16> @llvm.arm.neon.vld1.v8i16.p0(ptr, i32) nounwind readonly27declare void @llvm.arm.neon.vst1.p0.v8i16(ptr, <8 x i16>, i32) nounwind28 29; CHECK: attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }30; CHECK: attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }31; CHECK: attributes [[ATTR]] = { nounwind }32