mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
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
|
||
|
}
|