mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
8c7ecaf524
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94490 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
429 B
LLVM
23 lines
429 B
LLVM
; RUN: llc < %s -march=x86 | FileCheck %s
|
|
; rdar://7573216
|
|
|
|
define i32 @t1(i32 %x) nounwind readnone ssp {
|
|
entry:
|
|
; CHECK: t1:
|
|
; CHECK: cmpl $1
|
|
; CHECK: sbbl
|
|
%0 = icmp eq i32 %x, 0
|
|
%iftmp.0.0 = select i1 %0, i32 -1, i32 0
|
|
ret i32 %iftmp.0.0
|
|
}
|
|
|
|
define i32 @t2(i32 %x) nounwind readnone ssp {
|
|
entry:
|
|
; CHECK: t2:
|
|
; CHECK: cmpl $1
|
|
; CHECK: sbbl
|
|
%0 = icmp eq i32 %x, 0
|
|
%iftmp.0.0 = sext i1 %0 to i32
|
|
ret i32 %iftmp.0.0
|
|
}
|