2014-09-03 06:28:02 +08:00
|
|
|
; RUN: %lli -O0 %s
|
2012-10-04 00:29:42 +08:00
|
|
|
|
|
|
|
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
2015-03-14 02:20:45 +08:00
|
|
|
@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4
|
2012-10-04 00:29:42 +08:00
|
|
|
@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
|
2015-03-14 02:20:45 +08:00
|
|
|
@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4
|
2012-10-04 00:29:42 +08:00
|
|
|
|
|
|
|
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
|
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i8*, i8** @ptr, align 4
|
|
|
|
%1 = load i8*, i8** @ptr2, align 4
|
2012-10-04 00:29:42 +08:00
|
|
|
%cmp = icmp eq i8* %0, %1
|
|
|
|
%. = zext i1 %cmp to i32
|
|
|
|
ret i32 %.
|
|
|
|
}
|
|
|
|
|