1 ; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
2 ; RUN: opt -S -basic-aa -early-cse-memssa < %s | FileCheck %s
3 target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
4 target triple = "aarch64--linux-gnu"
6 declare { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>*)
8 ; Although the store and the ld4 are using the same pointer, the
9 ; data can not be reused because ld4 accesses multiple elements.
10 define { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @foo() {
12 store <4 x i16> undef, <4 x i16>* undef, align 8
13 %0 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>* undef)
14 ret { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } %0