blob: 871d8bfa29e8c700e6b4ed1ff0e641bdbd8d3085 [file] [log] [blame]
Peter Collingbournefbb662f2013-01-16 17:27:22 +00001; RUN: %lli_mcjit -O0 %s
Tim Northover565ebde2012-10-03 16:29:42 +00002
3@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
4@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
5@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
6@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4
7
8define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
9entry:
10 %0 = load i8** @ptr, align 4
11 %1 = load i8** @ptr2, align 4
12 %cmp = icmp eq i8* %0, %1
13 %. = zext i1 %cmp to i32
14 ret i32 %.
15}
16