diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-05-06 11:46:36 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-05-18 10:52:30 -0700 |
commit | 2c3e0051c31c3f5b2328b447eadf1cf9c4427442 (patch) | |
tree | c0104029af14e9f47c2ef58ca60e6137691f3c9b /test/Transforms/SROA | |
parent | e1bc145815f4334641be19f1c45ecf85d25b6e5a (diff) | |
download | external_llvm-2c3e0051c31c3f5b2328b447eadf1cf9c4427442.zip external_llvm-2c3e0051c31c3f5b2328b447eadf1cf9c4427442.tar.gz external_llvm-2c3e0051c31c3f5b2328b447eadf1cf9c4427442.tar.bz2 |
Update aosp/master LLVM for rebase to r235153
Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7
(cherry picked from commit 0c7f116bb6950ef819323d855415b2f2b0aad987)
Diffstat (limited to 'test/Transforms/SROA')
-rw-r--r-- | test/Transforms/SROA/ppcf128-no-fold.ll | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/Transforms/SROA/ppcf128-no-fold.ll b/test/Transforms/SROA/ppcf128-no-fold.ll new file mode 100644 index 0000000..3f2934c --- /dev/null +++ b/test/Transforms/SROA/ppcf128-no-fold.ll @@ -0,0 +1,36 @@ +; RUN: opt < %s -sroa -S | FileCheck %s +target datalayout = "E-m:e-i64:64-n32:64" +target triple = "powerpc64-unknown-linux-gnu" + +%struct.ld2 = type { [2 x ppc_fp128] } +declare void @bar(i8*, [2 x i128]) + +define void @foo(i8* %v) #0 { +entry: + %v.addr = alloca i8*, align 8 + %z = alloca %struct.ld2, align 16 + store i8* %v, i8** %v.addr, align 8 + %dat = getelementptr inbounds %struct.ld2, %struct.ld2* %z, i32 0, i32 0 + %arrayidx = getelementptr inbounds [2 x ppc_fp128], [2 x ppc_fp128]* %dat, i32 0, i64 0 + store ppc_fp128 0xM403B0000000000000000000000000000, ppc_fp128* %arrayidx, align 16 + %dat1 = getelementptr inbounds %struct.ld2, %struct.ld2* %z, i32 0, i32 0 + %arrayidx2 = getelementptr inbounds [2 x ppc_fp128], [2 x ppc_fp128]* %dat1, i32 0, i64 1 + store ppc_fp128 0xM4093B400000000000000000000000000, ppc_fp128* %arrayidx2, align 16 + %0 = load i8*, i8** %v.addr, align 8 + %coerce.dive = getelementptr %struct.ld2, %struct.ld2* %z, i32 0, i32 0 + %1 = bitcast [2 x ppc_fp128]* %coerce.dive to [2 x i128]* + %2 = load [2 x i128], [2 x i128]* %1, align 1 + call void @bar(i8* %0, [2 x i128] %2) + ret void +} + +; CHECK-LABEL: @foo +; CHECK-NOT: i128 4628293042053316608 +; CHECK-NOT: i128 4653260752096854016 +; CHECK-DAG: i128 bitcast (ppc_fp128 0xM403B0000000000000000000000000000 to i128) +; CHECK-DAG: i128 bitcast (ppc_fp128 0xM4093B400000000000000000000000000 to i128) +; CHECK: call void @bar(i8* %v, [2 x i128] +; CHECK: ret void + +attributes #0 = { nounwind } + |