Sign in
swiftshader
/
SwiftShader
/
377573cc10387b2aed700dd92aec4ee2c9f62422
/
.
/
third_party
/
llvm-7.0
/
llvm
/
test
/
CodeGen
/
XCore
/
mkmsk.ll
blob: bcec32d7552253fc69bd2308590974b56eac8fd5 [
file
] [
log
] [
blame
]
; RUN: llc < %s -march=xcore | FileCheck %s
define
i32
@f
(
i32
)
nounwind
{
; CHECK-LABEL: f:
; CHECK: mkmsk r0, r0
; CHECK-NEXT: retsp 0
entry
:
%1
=
shl
i32
1
,
%0
%2
=
add
i32
%1
,
-
1
ret
i32
%2
}