repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Shrink Thumb2 movcc instructions.
[llvm/avr.git]
/
test
/
CodeGen
/
Thumb
/
ispositive.ll
blob
5891b1f4c96b09eb3b15743ddbba2eb4974724a2
1
; RUN: llvm-as < %s | llc -march=thumb | FileCheck %s
2
3
define i32 @test1(i32 %X) {
4
entry:
5
; CHECK: test1:
6
; CHECK: lsrs r0, r0, #31
7
icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
8
zext i1 %0 to i32 ; <i32>:1 [#uses=1]
9
ret i32 %1
10
}
11