• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc  -march=mipsel -mattr=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:
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
22