blob: d6eee1ff6e184e2c59ba094c28d28026e43ee6a5 [file] [log] [blame]
Pirama Arumuga Nainarf3ef5332016-03-03 15:48:50 -08001; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
Reed Kotler293e5d0e2012-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:
Pirama Arumuga Nainar4c5e43d2015-04-08 08:55:49 -070010 %0 = load i32, i32* @k, align 4
Reed Kotler293e5d0e2012-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 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 Kotler293e5d0e2012-10-23 01:35:48 +000017 ret void
18}