[opaque pointer type] Add textual IR support for explicit type parameter to gep operator
[oota-llvm.git] / test / CodeGen / Generic / annotate.ll
1 ; RUN: llc < %s
2
3 ; PR15253
4
5 @.str = private unnamed_addr constant [4 x i8] c"sth\00", section "llvm.metadata"
6 @.str1 = private unnamed_addr constant [4 x i8] c"t.c\00", section "llvm.metadata"
7
8
9 define i32 @foo(i32 %a) {
10 entry:
11   %0 = call i32 @llvm.annotation.i32(i32 %a, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str1, i32 0, i32 0), i32 2)
12   ret i32 %0
13 }
14
15 declare i32 @llvm.annotation.i32(i32, i8*, i8*, i32) #1