blob: d31aefae6f0d91c26c407ae168f2c9705394a5d0 [file] [log] [blame]
Jozef Kolek44689472015-03-11 20:28:31 +00001; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
2; RUN: -relocation-model=pic -O3 < %s | FileCheck %s
3
4define i32 @main() {
5entry:
6 %retval = alloca i32, align 4
7 %x = alloca i64, align 8
8 store i32 0, i32* %retval
9 %0 = load i64, i64* %x, align 8
10 %cmp = icmp ne i64 %0, 9223372036854775807
11 br i1 %cmp, label %if.then, label %if.end
12
13if.then:
14 store i32 1, i32* %retval
15 br label %return
16
17if.end:
18 store i32 0, i32* %retval
19 br label %return
20
21return:
22 %1 = load i32, i32* %retval
23 ret i32 %1
24}
25
26; CHECK: not16