summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <[email protected]>2014-04-04 16:51:59 +0300
committerMatt Turner <[email protected]>2014-04-16 22:46:45 -0700
commit306ed81b9363721058c568244f9860c5c8c819f4 (patch)
tree18d335012e4762aeec37df3c2ed45e3169befd35 /docs
parent30c35d1dcb2fde19b1c968751fda5151b795d257 (diff)
i965: Add writes_accumulator flag
Our hardware has an "accumulator" register, which can be used to store intermediate results across multiple instructions. Many instructions can implicitly write a value to the accumulator in addition to their normal destination register. This is enabled by the "AccWrEn" flag. This patch introduces a new flag, inst->writes_accumulator, which allows us to express the AccWrEn notion in the IR. It also creates a n ALU2_ACC macro to easily define emitters for instructions that implicitly write the accumulator. Previously, we only supported implicit accumulator writes from the ADDC, SUBB, and MACH instructions. We always enabled them on those instructions, and left them disabled for other instructions. To take advantage of the MAC (multiply-accumulate) instruction, we need to be able to set AccWrEn on other types of instructions. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions