mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
b637b9f89e
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
|
|
}
|