blob: 484674e5da324a0df4f6bad123785fc5cf3faaed [file] [log] [blame]
Reed Kotler164bb372012-10-23 01:35:48 +00001; 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
9define void @test() nounwind {
10entry:
David Blaikiea79ac142015-02-27 21:17:42 +000011 %0 = load i32, i32* @i, align 4
12 %1 = load i32, i32* @k, align 4
Reed Kotler164bb372012-10-23 01:35:48 +000013 %cmp = icmp ne i32 %0, %1
14 %conv = zext i1 %cmp to i32
15 store i32 %conv, i32* @r1, align 4
16; 16: xor $[[REGISTER:[0-9]+]], ${{[0-9]+}}
17; 16: sltu ${{[0-9]+}}, $[[REGISTER]]
Reed Kotler7b503c22013-02-20 05:45:15 +000018; 16: move ${{[0-9]+}}, $24
Reed Kotler164bb372012-10-23 01:35:48 +000019 ret void
20}