1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/CodeGen/XCore/mkmsk.ll
Richard Osborne 96c0be7351 Fix pattern for MKMSK instruction.
llvm-svn: 158409
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
}