2012-08-15 19:34:23 +00:00
|
|
|
; RUN: llc < %s -march=xcore | FileCheck %s
|
|
|
|
|
|
|
|
define i32 @f(i32) nounwind {
|
2013-12-22 00:04:03 +00:00
|
|
|
; CHECK-LABEL: f:
|
2012-08-15 19:34:23 +00:00
|
|
|
; CHECK: mkmsk r0, r0
|
|
|
|
; CHECK-NEXT: retsp 0
|
|
|
|
entry:
|
|
|
|
%1 = shl i32 1, %0
|
|
|
|
%2 = add i32 %1, -1
|
|
|
|
ret i32 %2
|
|
|
|
}
|