mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
17b06b899e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188814 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
624 B
LLVM
18 lines
624 B
LLVM
; RUN: %lli_mcjit -O0 -relocation-model=pic -code-model=small %s
|
|
; XFAIL: mips, aarch64, arm, i686-pc-linux
|
|
|
|
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
|
|
@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
|
|
@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
|
|
@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4
|
|
|
|
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
|
|
entry:
|
|
%0 = load i8** @ptr, align 4
|
|
%1 = load i8** @ptr2, align 4
|
|
%cmp = icmp eq i8* %0, %1
|
|
%. = zext i1 %cmp to i32
|
|
ret i32 %.
|
|
}
|
|
|