1; RUN: llc < %s -march=xcore | FileCheck %s
2
3define i32 @f(i32) nounwind {
4; CHECK-LABEL: f:
5; CHECK: mkmsk r0, r0
6; CHECK-NEXT: retsp 0
7entry:
8  %1 = shl i32 1, %0
9  %2 = add i32 %1, -1
10  ret i32 %2
11}
12