reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: if{{.*}}add
; CHECK: if{{.*}}sub

define i32 @foo (i1 %a, i32 %b, i32 %c, i32 %d) nounwind {
  %1 = add i32 %b, %d
  %2 = sub i32 %c, %d
  %3 = select i1 %a, i32 %1, i32 %2
  ret i32 %3
}