cc1af31429e1394db0c62866fd818f60fbec184f
[oota-llvm.git] / test / Transforms / EarlyCSE / AArch64 / ldstN.ll
1 ; RUN: opt -S -early-cse < %s | FileCheck %s\r
2 target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"\r
3 target triple = "aarch64--linux-gnu"\r
4 \r
5 declare { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>*)\r
6 \r
7 ; Although the store and the ld4 are using the same pointer, the\r
8 ; data can not be reused because ld4 accesses multiple elements.\r
9 define { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @foo() {\r
10 entry:\r
11   store <4 x i16> undef, <4 x i16>* undef, align 8\r
12   %0 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>* undef)\r
13   ret { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } %0\r
14 ; CHECK-LABEL: @foo(\r
15 ; CHECK: store\r
16 ; CHECK-NEXT: call\r
17 ; CHECK-NEXT: ret\r
18 }\r