blob: d6eee1ff6e184e2c59ba094c28d28026e43ee6a5 [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
Reed Kotler164bb372012-10-23 01:35:48 +00002
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:
David Blaikiea79ac142015-02-27 21:17:42 +000010 %0 = load i32, i32* @k, align 4
Reed Kotler164bb372012-10-23 01:35:48 +000011 %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 Kotler7b503c22013-02-20 05:45:15 +000015; 16: move ${{[0-9]+}}, $24
Reed Kotler183ba5e2012-10-26 01:29:42 +000016; 16: xor ${{[0-9]+}}, ${{[0-9]+}}
Reed Kotler164bb372012-10-23 01:35:48 +000017 ret void
18}