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
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
X86
/
sext-ret-val.ll
blob
250d310ebb1439725e239ae19a6209b006bf19dc
1
; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s
2
; rdar://6699246
3
4
define signext i8 @t1(ptr %A) nounwind readnone ssp {
5
entry:
6
%0 = icmp ne ptr %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(ptr %A) nounwind readnone ssp {
17
entry:
18
%0 = icmp ne ptr %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
}