1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/CodeGen/Mips/setcc-se.ll
2013-05-08 19:38:04 +00:00

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
}