projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move codegen test over to MC.
[oota-llvm.git]
/
test
/
CodeGen
/
XCore
/
mkmsk.ll
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
}