summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/objsize.ll
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2013-04-20 17:39:52 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2013-04-20 17:39:52 +0000
commit36e827602a79ab462177c0c764a1f6b01aa6e87c (patch)
tree8641126a60cd4d751ffcbead52910b28b4fcf404 /llvm/test/Transforms/InstCombine/objsize.ll
parent8fccb8a772b58dbf6dc5b48aac7febca073fef5e (diff)
downloadbcm5719-llvm-36e827602a79ab462177c0c764a1f6b01aa6e87c.tar.gz
bcm5719-llvm-36e827602a79ab462177c0c764a1f6b01aa6e87c.zip
recommit tests
llvm-svn: 179955
Diffstat (limited to 'llvm/test/Transforms/InstCombine/objsize.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/objsize.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/objsize.ll b/llvm/test/Transforms/InstCombine/objsize.ll
index 31a3cb46e45..122c6501a3f 100644
--- a/llvm/test/Transforms/InstCombine/objsize.ll
+++ b/llvm/test/Transforms/InstCombine/objsize.ll
@@ -256,3 +256,23 @@ xpto:
return:
ret i32 7
}
+
+@globalalias = alias internal [60 x i8]* @a
+
+; CHECK: @test18
+; CHECK-NEXT: ret i32 60
+define i32 @test18() {
+ %bc = bitcast [60 x i8]* @globalalias to i8*
+ %1 = call i32 @llvm.objectsize.i32(i8* %bc, i1 false)
+ ret i32 %1
+}
+
+@globalalias2 = alias weak [60 x i8]* @a
+
+; CHECK: @test19
+; CHECK: llvm.objectsize
+define i32 @test19() {
+ %bc = bitcast [60 x i8]* @globalalias2 to i8*
+ %1 = call i32 @llvm.objectsize.i32(i8* %bc, i1 false)
+ ret i32 %1
+}
OpenPOWER on IntegriCloud