mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 06:54:54 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181459 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
209 B
LLVM
12 lines
209 B
LLVM
; RUN: llc -march=mipsel < %s | FileCheck %s
|
|
|
|
; CHECK: seteq0:
|
|
; CHECK: sltiu ${{[0-9]+}}, $4, 1
|
|
|
|
define i32 @seteq0(i32 %a) {
|
|
entry:
|
|
%cmp = icmp eq i32 %a, 0
|
|
%conv = zext i1 %cmp to i32
|
|
ret i32 %conv
|
|
}
|