8fad6122bdbe20b8d8b6f8a667b5bc7a92a0b24d
[oota-llvm.git] / test / CodeGen / Mips / seteq.ll
1 ; RUN: llc  -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
2
3 @i = global i32 1, align 4
4 @j = global i32 10, align 4
5 @k = global i32 1, align 4
6 @r1 = common global i32 0, align 4
7 @r2 = common global i32 0, align 4
8
9 define void @test() nounwind {
10 entry:
11   %0 = load i32, i32* @i, align 4
12   %1 = load i32, i32* @k, align 4
13   %cmp = icmp eq i32 %0, %1
14   %conv = zext i1 %cmp to i32
15   store i32 %conv, i32* @r1, align 4
16 ; 16:   xor     $[[REGISTER:[0-9A-Ba-b_]+]], ${{[0-9]+}}
17 ; 16:   sltiu   $[[REGISTER:[0-9A-Ba-b_]+]], 1
18 ; 16:   move    ${{[0-9]+}}, $24
19   ret void
20 }
21