blob: 47a88a1e3c25c9263818472f19ea9bf4813660f0 [file] [log] [blame]
Wesley Pecka70f28c2010-02-23 19:15:24 +00001; Ensure that the select instruction is supported and is lowered to
2; some sort of branch instruction.
3;
4; RUN: llc < %s -march=mblaze | FileCheck %s
5
6define i32 @testsel(i32 %a, i32 %b)
7{
8 ; CHECK: testsel:
9 %tmp.1 = icmp eq i32 %a, %b
10 ; CHECK: cmp
11 %tmp.2 = select i1 %tmp.1, i32 %a, i32 %b
12 ; CHECK: {{bne|beq}}
13 ret i32 %tmp.2
14 ; CHECK: rtsd
15}