Sign in
ara-mdk
/
platform
/
external
/
llvm
/
d8bfde0c6a4fad3b8846af4e4d19d9a3cbbce0b2
/
.
/
test
/
CodeGen
/
XCore
/
mkmsk.ll
blob: 377612b7d215ae3b66504276c3cd6bc6cfbb3a93 [
file
] [
log
] [
blame
]
; RUN: llc < %s -march=xcore | FileCheck %s
define
i32
@f
(
i32
)
nounwind
{
; CHECK: f:
; CHECK: mkmsk r0, r0
; CHECK-NEXT: retsp 0
entry
:
%1
=
shl
i32
1
,
%0
%2
=
add
i32
%1
,
-
1
ret
i32
%2
}