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
Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
Hexagon
/
expand-condsets-pred-undef2.ll
blob
5201f3e30ebc91bd132bb7dad23f4f50b8775b09
1
; RUN: llc -march=hexagon < %s | FileCheck %s
2
; CHECK: if{{.*}}add
3
; CHECK: if{{.*}}sub
4
5
; Function Attrs: nounwind
6
define i32 @f0(i32 %a0, i32 %a1, i32 %a2, i1 %x) #0 {
7
b0:
8
%v0 = add i32 %a0, %a2
9
%v1 = sub i32 %a1, %a2
10
%v2 = select i1 %x, i32 %v0, i32 %v1
11
ret i32 %v2
12
}
13
14
attributes #0 = { nounwind }