source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/Hexagon/expand-condsets-basic.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 244 bytes
Line 
1; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK: if{{.*}}add
3; CHECK: if{{.*}}sub
4
5define i32 @foo (i1 %a, i32 %b, i32 %c, i32 %d) nounwind {
6  %1 = add i32 %b, %d
7  %2 = sub i32 %c, %d
8  %3 = select i1 %a, i32 %1, i32 %2
9  ret i32 %3
10}
11
Note: See TracBrowser for help on using the repository browser.