llvm-6502/test/CodeGen/XCore/mkmsk.ll

12 lines
196 B
LLVM
Raw Normal View History

; 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
}