• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; 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}
16