blob: 18a0fcf621304b1d16ca997b76995937aeee7bb1 [file] [log] [blame]
Reed Kotler293e5d02012-10-23 01:35:48 +00001; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
2
3@k = global i32 10, align 4
4@r1 = common global i32 0, align 4
5@r2 = common global i32 0, align 4
6@r3 = common global i32 0, align 4
7
8define void @test() nounwind {
9entry:
10 %0 = load i32* @k, align 4
11 %cmp = icmp sgt i32 %0, -32769
12 %conv = zext i1 %cmp to i32
13 store i32 %conv, i32* @r1, align 4
14; 16: slti ${{[0-9]+}}, -32768
Reed Kotler65692c82013-02-20 05:45:15 +000015; 16: move ${{[0-9]+}}, $24
Reed Kotler30675b12012-10-26 01:29:42 +000016; 16: xor ${{[0-9]+}}, ${{[0-9]+}}
Reed Kotler293e5d02012-10-23 01:35:48 +000017 ret void
18}