llvm-6502/test/CodeGen/XCore/mkmsk.ll
Richard Osborne aa08c8b2ba Fix pattern for MKMSK instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158409 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-13 17:59:12 +00:00

12 lines
196 B
LLVM

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