diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2013-04-20 17:39:52 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2013-04-20 17:39:52 +0000 |
commit | bf9fba961b4cf8fec7fc5d77cc14580ba5feafa2 (patch) | |
tree | 0eea6f99c79f52109155939b36c35cb1e8278b83 /test/Transforms/InstCombine | |
parent | 514d514bb27eaff0088b972ceeb01f0330780973 (diff) | |
download | external_llvm-bf9fba961b4cf8fec7fc5d77cc14580ba5feafa2.zip external_llvm-bf9fba961b4cf8fec7fc5d77cc14580ba5feafa2.tar.gz external_llvm-bf9fba961b4cf8fec7fc5d77cc14580ba5feafa2.tar.bz2 |
recommit tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r-- | test/Transforms/InstCombine/objsize.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/objsize.ll b/test/Transforms/InstCombine/objsize.ll index 31a3cb4..122c650 100644 --- a/test/Transforms/InstCombine/objsize.ll +++ b/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 +} |