04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler-specific Features<br />

4.7.105 __uxtab16 intrinsic<br />

This intrinsic inserts a UXTAB16 instruction into the instruction stream generated by the<br />

compiler. It enables you to extract two 8-bit values from one operand, zero-extend them<br />

to 16 bits each, and add the results to two 16-bit values from another operand.<br />

unsigned int __uxtab16(unsigned int val1, unsigned int val2)<br />

Where val2[7:0] and val2[23:16] hold the two 8-bit values to be zero-extended.<br />

The __uxtab16 intrinsic returns the 8-bit values in val2, zero-extended to 16-bit values<br />

and added to val1.<br />

Example:<br />

unsigned int extend_add(unsigned int val1, unsigned int val2)<br />

{<br />

unsigned int res;<br />

}<br />

res = __uxtab16(val1,val2); /* res[15:0] = ZeroExt(val2[7:0] to 16 bits)<br />

+ val1[15:0]<br />

res[31:16] = ZeroExt(val2[31:16] to 16 bits)<br />

+ val1[31:16]<br />

*/<br />

return res;<br />

See also<br />

• <strong>ARM</strong>v6 SIMD intrinsics on page 4-109<br />

• Instruction summary on page 4-2 in the Assembler Guide<br />

• SXT, SXTA, UXT, and UXTA on page 4-109 in the Assembler Guide.<br />

4-186 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!