recommit tests
authorNuno Lopes <nunoplopes@sapo.pt>
Sat, 20 Apr 2013 17:39:52 +0000 (17:39 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Sat, 20 Apr 2013 17:39:52 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179955 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/objsize.ll

index 31a3cb46e4595296129f760e0fbd2b9646c75617..122c6501a3f509f8efec29c1f9b2c606673a5743 100644 (file)
@@ -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
+}