1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/CodeGen/XCore/zext.ll
Richard Osborne ad449c14dd [XCore] Fix instruction selection for zext, mkmsk instructions.
r182680 replaced CountLeadingZeros_32 with a template function
countLeadingZeros that relies on using the correct argument type to give
the right result. The type passed in the XCore backend after this
revision was incorrect in a couple of places.

Patch by Robert Lytton.

llvm-svn: 185430
2013-07-02 14:46:34 +00:00

11 lines
162 B
LLVM

; RUN: llc -march=xcore < %s | FileCheck %s
define i32 @f(i1 %a) {
entry:
; CHECK: f
; CHECK: zext r0, 1
; CHECK: retsp 0
%b= zext i1 %a to i32
ret i32 %b
}