projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e7dce
)
Correctly handle scattered operands where the bits of the operand are contiguous...
author
Owen Anderson
<resistor@mac.com>
Fri, 29 Jul 2011 23:01:18 +0000
(23:01 +0000)
committer
Owen Anderson
<resistor@mac.com>
Fri, 29 Jul 2011 23:01:18 +0000
(23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136534
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/FixedLenDecoderEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/FixedLenDecoderEmitter.cpp
b/utils/TableGen/FixedLenDecoderEmitter.cpp
index 809100328861044e7f4a73dbd86f842212044195..b87634bfee40e0384aa006f8700d4586d19de32b 100644
(file)
--- a/
utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/
utils/TableGen/FixedLenDecoderEmitter.cpp
@@
-1295,6
+1295,11
@@
static bool populateInstruction(const CodeGenInstruction &CGI,
Base = bi;
Width = 1;
Offset = BI->getBitNum();
+ } else if (BI->getBitNum() != Offset + Width) {
+ OpInfo.addField(Base, Width, Offset);
+ Base = bi;
+ Width = 1;
+ Offset = BI->getBitNum();
} else {
++Width;
}