mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
850ba41ed4
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185430 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
162 B
LLVM
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
|
|
}
|