commit | 4596322b12a72cdeea8deba1242d9b74da5ba12a | [log] [tgz] |
---|---|---|
author | jeffhao <jeffhao@google.com> | Mon Jan 24 17:36:28 2011 -0800 |
committer | jeffhao <jeffhao@google.com> | Mon Jan 24 18:28:59 2011 -0800 |
tree | 019254b56ce83a32500408000f4b5ea92b526585 | |
parent | 0b7926b9becc0f849ded05a33bb192113f6839af [diff] |
Allow dx to properly generate sub-const and rsub-const insns. Dx can now handle instructions of the form "reg - const" by converting it into an equivalent add-const with negative constant. Also, dx can handle instructions of the form "const - reg" by creating an rsub-const instruction, which was previously unused. Change-Id: I67d869b5e14b65f6bbd1daae8bf0c662296af5de