repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git]
/
test
/
CodeGen
/
Hexagon
/
tstbit.ll
blob
f28f031a020c96df5f8a517301b2585e049fe36c
1
; RUN: llc -march=hexagon < %s | FileCheck %s
2
; CHECK: tstbit
3
4
; Function Attrs: nounwind readnone
5
define i32 @f0(i32 %a0, i32 %a1) #0 {
6
b0:
7
%v0 = shl i32 1, %a1
8
%v1 = and i32 %v0, %a0
9
%v2 = icmp ne i32 %v1, 0
10
%v3 = zext i1 %v2 to i32
11
ret i32 %v3
12
}
13
14
attributes #0 = { nounwind readnone }