repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
XCore
/
mkmsk.ll
blob
bcec32d7552253fc69bd2308590974b56eac8fd5
1
; RUN: llc < %s -march=xcore | FileCheck %s
2
3
define i32 @f(i32) nounwind {
4
; CHECK-LABEL: f:
5
; CHECK: mkmsk r0, r0
6
; CHECK-NEXT: retsp 0
7
entry:
8
%1 = shl i32 1, %0
9
%2 = add i32 %1, -1
10
ret i32 %2
11
}