summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2012-06-13 17:59:12 +0000
committerRichard Osborne <richard@xmos.com>2012-06-13 17:59:12 +0000
commitab7d788eb5e57986a0b281e91e676707589a92e7 (patch)
treebc44ac96483acd9e39d416d795d5891785f0db9a /llvm/lib/Target
parente2fe809772624400386bc7dc0f7aad50e7dba180 (diff)
downloadbcm5719-llvm-ab7d788eb5e57986a0b281e91e676707589a92e7.tar.gz
bcm5719-llvm-ab7d788eb5e57986a0b281e91e676707589a92e7.zip
Fix pattern for MKMSK instruction.
llvm-svn: 158409
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/XCore/XCoreInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/XCore/XCoreInstrInfo.td b/llvm/lib/Target/XCore/XCoreInstrInfo.td
index b25a08d25c1..b2f06037768 100644
--- a/llvm/lib/Target/XCore/XCoreInstrInfo.td
+++ b/llvm/lib/Target/XCore/XCoreInstrInfo.td
@@ -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",
OpenPOWER on IntegriCloud