《高性能处理器体系结构》课件PPT 7 数据并行体系结构.ppt

《高性能处理器体系结构》课件PPT 7 数据并行体系结构.ppt

  1. 1、本文档共87页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《高性能处理器体系结构》课件PPT 7 数据并行体系结构

Intel MMX: Basics Most multimedia apps work on short integers Pack data into 64-bit words Bytes 8bits Words 16 bits Double words 32 bits Operate on packed data like short vectors (SIMD) * USTC CS AN Hong MMX Extension MMX registers: 64-bit MM0 to MM7 shared with FP registers R0, R7, has side-effect on FPU state, only use for operands Four MMX data types: 64-bit / 32-bit access mode from memory to MMX registers SIMD techniques for arithmetic/logical operations on bytes, words, doublewords from/to 64-bit registers 0 63 Packed Byte 8x8 Packed Word 16x4 Packed Doubleword 32x2 Quadword 64 MMX Register * USTC CS AN Hong MMX Instruction Set MMX instruction set consists of 57 instructions, group into 7 categories: Arithmetic instructions Data transfer instructions Comparison instructions Conversion instructions Logical instructions Shift instructions Empty MMX state instruction (EMMS) Minimizes ISA changes Can improve performance up to 8x (in theory) benchmark perf not 8x, but very good and gives customers another reason to consider their current PC obsolete. * USTC CS AN Hong MMX Instruction Set * USTC CS AN Hong MMX Instruction Set - Arithmetic Overflow/underflow for Wraparound: truncated; for Saturation: set to the maximum/minimum value, useful for graphics Packed multiplication: perform four multiplications on pairs of 16-bit operands, producing 32-bit results; PMULHW / PMULLW writes high-order / low-order 16 bits of results to destinations Packed multiply add: multiply 4 16-bit pair of sources and destinations; four 32-bit results are summed in pairs Arithmetic Wraparound Signed saturation Unsign saturation Addition PADD(b,w,d) PADDS(b,w) PADDUS(b,w) Subtraction PSUB(b,w,d) PSUBS(b,w) PSUBUS(b,w) Multiplication PMUL(lw,hw) Multiply and Add PMADDWD * USTC CS AN Hong Example:Packed Multiply Add 4 multiplications and 2 adds in one PMADDWD PMADDWD produces 2 DW (32 bits) results Useful inst. for many media and signal applications Need arran

文档评论(0)

bodkd + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档