repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
Hexagon
/
expand-condsets-basic.ll
blob
16fe8af47b132c09364f6f123f1b29b1b9118658
1
; RUN: llc -march=hexagon < %s | FileCheck %s
2
; CHECK: if{{.*}}add
3
; CHECK: if{{.*}}sub
4
5
define 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