xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/2008-06-16-SubregsBug.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: llc < %s -mtriple=i386-apple-darwin | grep mov | count 4
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambucdefine i16 @test(i16* %tmp179) nounwind  {
4*f4a2713aSLionel Sambuc	%tmp180 = load i16* %tmp179, align 2		; <i16> [#uses=2]
5*f4a2713aSLionel Sambuc	%tmp184 = and i16 %tmp180, -1024		; <i16> [#uses=1]
6*f4a2713aSLionel Sambuc	%tmp186 = icmp eq i16 %tmp184, -32768		; <i1> [#uses=1]
7*f4a2713aSLionel Sambuc	br i1 %tmp186, label %bb189, label %bb288
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambucbb189:		; preds = %0
10*f4a2713aSLionel Sambuc	ret i16 %tmp180
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambucbb288:		; preds = %0
13*f4a2713aSLionel Sambuc	ret i16 32
14*f4a2713aSLionel Sambuc}
15