repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git]
/
test
/
CodeGen
/
X86
/
sext-ret-val.ll
blob
33de80f02494f9b21ec0446eada982f5dc0e494e
1
; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s
2
; rdar://6699246
3
4
define signext i8 @t1(i8* %A) nounwind readnone ssp {
5
entry:
6
%0 = icmp ne i8* %A, null
7
%1 = zext i1 %0 to i8
8
ret i8 %1
9
10
; CHECK-LABEL: t1:
11
; CHECK: cmpl
12
; CHECK-NEXT: setne
13
; CHECK-NEXT: retl
14
}
15
16
define i8 @t2(i8* %A) nounwind readnone ssp {
17
entry:
18
%0 = icmp ne i8* %A, null
19
%1 = zext i1 %0 to i8
20
ret i8 %1
21
22
; CHECK-LABEL: t2:
23
; CHECK: cmpl
24
; CHECK-NEXT: setne
25
; CHECK-NEXT: retl
26
}