X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FEarlyCSE%2FAArch64%2FldstN.ll;h=b457621a9b5c7b84a3769acdc9d7a9dc2d94a6ef;hb=ac6a87b06ead105f9fd84b0450f97c88baf07ed6;hp=cc1af31429e1394db0c62866fd818f60fbec184f;hpb=c88a575ea513a106f26b7d0ed15ed9e5be4f4a32;p=oota-llvm.git diff --git a/test/Transforms/EarlyCSE/AArch64/ldstN.ll b/test/Transforms/EarlyCSE/AArch64/ldstN.ll index cc1af31429e..b457621a9b5 100644 --- a/test/Transforms/EarlyCSE/AArch64/ldstN.ll +++ b/test/Transforms/EarlyCSE/AArch64/ldstN.ll @@ -1,18 +1,18 @@ -; RUN: opt -S -early-cse < %s | FileCheck %s -target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128" -target triple = "aarch64--linux-gnu" - -declare { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>*) - -; Although the store and the ld4 are using the same pointer, the -; data can not be reused because ld4 accesses multiple elements. -define { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @foo() { -entry: - store <4 x i16> undef, <4 x i16>* undef, align 8 - %0 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>* undef) - ret { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } %0 -; CHECK-LABEL: @foo( -; CHECK: store -; CHECK-NEXT: call -; CHECK-NEXT: ret -} +; RUN: opt -S -early-cse < %s | FileCheck %s +target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128" +target triple = "aarch64--linux-gnu" + +declare { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>*) + +; Although the store and the ld4 are using the same pointer, the +; data can not be reused because ld4 accesses multiple elements. +define { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @foo() { +entry: + store <4 x i16> undef, <4 x i16>* undef, align 8 + %0 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>* undef) + ret { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } %0 +; CHECK-LABEL: @foo( +; CHECK: store +; CHECK-NEXT: call +; CHECK-NEXT: ret +}