[PATCH] [PATCH][mips] Add range checks and transformation to octeon instructions in AsmParser.
Kai Nacke
kai.nacke at redstar.de
Tue Jan 20 22:04:46 PST 2015
Hi dsanders,
Hi Daniel!
This patch adds range checks to the immediate operands of octeon
instructions in the AsmParser. Like gas, it applies the following
transformations if the immediate is to large:
bbit0 $8, 42, foo => bbit032 $8, 10, foo
bbit1 $8, 46, foo => bbit132 $8, 14, foo
cins $8, $31, 32, 31 => cins32 $8, $31, 0, 31
exts $7, $4, 54, 9 => exts32 $7, $4, 22, 9
Please review.
Regards,
Kai
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7080
Files:
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/octeon-instructions.s
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7080.18481.patch
Type: text/x-patch
Size: 6115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150121/d6cef463/attachment.bin>
More information about the llvm-commits
mailing list