mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix pattern for MKMSK instruction.
llvm-svn: 158409
This commit is contained in:
parent
ce49530fba
commit
96c0be7351
@ -796,7 +796,7 @@ def MKMSK_rus : _FRUS<(outs GRRegs:$dst), (ins i32imm:$size),
|
||||
|
||||
def MKMSK_2r : _FRUS<(outs GRRegs:$dst), (ins GRRegs:$size),
|
||||
"mkmsk $dst, $size",
|
||||
[(set GRRegs:$dst, (add (shl 1, GRRegs:$size), 0xffffffff))]>;
|
||||
[(set GRRegs:$dst, (add (shl 1, GRRegs:$size), -1))]>;
|
||||
|
||||
def GETR_rus : _FRUS<(outs GRRegs:$dst), (ins i32imm:$type),
|
||||
"getr $dst, $type",
|
||||
|
11
test/CodeGen/XCore/mkmsk.ll
Normal file
11
test/CodeGen/XCore/mkmsk.ll
Normal file
@ -0,0 +1,11 @@
|
||||
; 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user