FIX and FLOAT instructions

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

FIX and FLOAT instructions

Postby Gravis » Tue Jul 16, 2013 3:14 am

the "Operation" section for the FIX and FLOAT instructions say "RD = fix(RN)" and "RD = float(RN)".

can fix() or float() possibly return a result that is not conformant to IEEE-754 single-precision format?

it would be really nice if there were the full algorithms somewhere in the document.
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: FIX and FLOAT instructions

Postby aolofsson » Tue Jul 16, 2013 11:21 pm

The 'e-run' single core simulator within the epiphany-sourceware tree has the bit exact simulator for the Epiphany instruction set.

Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: FIX and FLOAT instructions

Postby Gravis » Wed Jul 17, 2013 2:42 pm

yeah, i checked out the simulator and it relies on the compiler to convert the type so it's definitely IEEE-754 single-precision format compliant. i would use the compiler too but it may prove problematic on a GPU that uses gigantic floats. not a problem though because i can read the spec or just copy code from a standards compliant soft float library.
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 129 guests