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.48 <strong>ARM</strong>v6 SIMD instruction intrinsics and APSR GE flags<br />

Table 4-18<br />

Intrinsic APSR.GE flag action APSR.GE operation<br />

__sel Reads GE flags if APSR.GE[0] == 1 then res[7:0] = val1[7:0] else val2[7:0]<br />

if APSR.GE[1] == 1 then res[15:8] = val1[15:8] else val2[15:8]<br />

if APSR.GE[2] == 1 then res[23:16] = val1[23:16] else val2[23:16]<br />

if APSR.GE[3] == 1 then res[31:24] = val1[31:24] else val2[31:24]<br />

__sadd16 Sets or clears GE flags if sum1 ≥ 0 then APSR.GE[1:0] = 11 else 00<br />

if sum2 ≥ 0 then APSR.GE[3:2] = 11 else 00<br />

__sadd8 Sets or clears GE flags if sum1 ≥ 0 then APSR.GE[0] = 1 else 0<br />

if sum2 ≥ 0 then APSR.GE[1] = 1 else 0<br />

if sum3 ≥ 0 then APSR.GE[2] = 1 else 0<br />

if sum4 ≥ 0 then APSR.GE[3] = 1 else 0<br />

__sasx Sets or clears GE flags if diff ≥ 0 then APSR.GE[1:0] = 11 else 00<br />

if sum ≥ 0 then APSR.GE[3:2] = 11 else 00<br />

__ssax Sets or clears GE flags if sum ≥ 0 then APSR.GE[1:0] = 11 else 00<br />

if diff ≥ 0 then APSR.GE[3:2] = 11 else 00<br />

__ssub16 Sets or clears GE flags if diff1 ≥ 0 then APSR.GE[1:0] = 11 else 00<br />

if diff2 ≥ 0 then APSR.GE[3:2] = 11 else 00<br />

__ssub8 Sets or clears GE flags if diff1 ≥ 0 then APSR.GE[0] = 1 else 0<br />

if diff2 ≥ 0 then APSR.GE[1] = 1 else 0<br />

if diff3 ≥ 0 then APSR.GE[2] = 1 else 0<br />

if diff4 ≥ 0 then APSR.GE[3] = 1 else 0<br />

__uadd16 Sets or clears GE flags if sum1 ≥ 0x10000 then APSR.GE[1:0] = 11 else 00<br />

if sum2 ≥ 0x10000 then APSR.GE[3:2] = 11 else 00<br />

__uadd8 Sets or clears GE flags if sum1 ≥ 0x100 then APSR.GE[0] = 1 else 0<br />

if sum2 ≥ 0x100 then APSR.GE[1] = 1 else 0<br />

if sum3 ≥ 0x100 then APSR.GE[2] = 1 else 0<br />

if sum4 ≥ 0x100 then APSR.GE[3] = 1 else 0<br />

__uasx Sets or clears GE flags if diff ≥ 0 then APSR.GE[1:0] = 11 else 00<br />

if sum ≥ 0x10000 then APSR.GE[3:2] = 11 else 00<br />

4-118 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!