4-34
Intel® PXA27x Processor Family
Optimization Guide
Intel XScale® Microarchitecture & Intel® Wireless MMX™ Technology Optimization
SUB r0,r0,r7 ; r0 psrc 64 bit aligned
WLDRD wR0, [r0] ; load first group of 8 bytes
ADD r8,r7,#1 ; r8 -> 3LSBs of *psrc + 1
WLDRD wR1, [r0,#8] ; load second group of 8 bytes
TMCR wCGR1, r7 ; transfer alignment to wCGR1
WLDRD wR2, [r0]
TMCR wCGR2, r8
WLDRD wR3, [r0,#8]
LOOP
; We recommend completely unrolling this loop it will save 8 cycles
ADD r0,r0,r1
SUBS r12,r12,#1
WALIGNR1 wR4, wR0, wR1
WALIGNR2 wR5, wR0, wR1
WLDRD wR0, [r0]
WAVG2BR wR6, wR4, wR5
WLDRD wR1, [r0,#8]
SUB r12,r12,#1
WSTRD wR6, [r2]
WALIGNR1 wR4, wR2, wR3
WALIGNR2 wR5, wR2, wR3
WLDRD wR2, [r0]
WAVG2BR wR6, wR4, wR5
WLDRD wR3, [r0,#8]
ADD r2,r2,r3 ; Adding stride
WSTRD wR6, [r2]
ADD r2,r2,r3 ; Adding stride
BNE LOOP
4.7
Intel® Performance Primitives
Users who want to take full advantage of many of the optimizations in this guide are likely to use
these techniques:
•
Write hand-optimized assembly code.
•
Take advantage of a compiler tuned for the Intel XScale® Microarchitecture and the ARM*
v5TE instruction set architecture.
•
Incorporate a library with optimizations present.
For the last item, a listing of fully optimized code, the Intel® Integrated Performance Primitives
(IPP) is available. The IPP comprises a rich and powerful set of general and multimedia signal
processing kernels optimized for high performance on the PXA27x processor. Besides
optimization, the IPP offers application developers a number of significant advantages, including
accelerated time-to-market, compatibility with many major real-time embedded operating systems,
and support for porting across certain Intel® platforms.
Содержание PXA270
Страница 1: ...Order Number 280004 001 Intel PXA27x Processor Family Optimization Guide April 2004...
Страница 10: ...x Intel PXA27x Processor Family Optimization Guide Contents...
Страница 20: ...1 10 Intel PXA27x Processor Family Optimization Guide Introduction...
Страница 30: ...2 10 Intel PXA27x Processor Family Optimization Guide Microarchitecture Overview...
Страница 48: ...3 18 Intel PXA27x Processor Family Optimization Guide System Level Optimization...
Страница 114: ...5 16 Intel PXA27x Processor Family Optimization Guide High Level Language Optimization...
Страница 122: ...6 8 Intel PXA27x Processor Family Optimization Guide Power Optimization...
Страница 143: ...Intel PXA27x Processor Family Optimization Guide Index 5 Index...
Страница 144: ......