Where can I find the full description of all builtin functions?
Now I can find it to view asm
The reason these builtins are not documented is that they are for legacy purposes only. Notice that all the names contain "LR". In builtin nomenclature, "R" is used for "fract", and "LR" is used for "long fract". Since on SHARC both of these are the same size, the "LR" versions are not needed (note also that the "conv" builtins, as a result, do nothing). The builtins were supported internally for convenience to give compatibility with a previous processor, but were not documented as they are not intended to be used on SHARC. We recognise that the fact they still appear in builtins.h without any comment, and do not appear in the documentation, is confusing and will correct it for a future release.
Find the Compiler Manual for your processor. The SHARC version has a section entitled "Compiler Built-In Functions".
You are wrong. Read better. This chapter don't describe all of builtin functions
I happened to have my documentation for the Sharc open near that page, I didn't read the entire chapter, but just glancing I saw it mentions __builtin_RxItoI, which looked close, so I thought it would give you what you needed, so I posted.
So that I don't further upset you, I'll refrain from answering any more of your questions in the future.
My investigation show me
1)__builtin_LRxLR - it's mul without sat
R2 = R2*R4 (ssfr);
__builtin_RxR - it's mul with sat
MRF = R2*R4 (ssfr);
R2 = sat MRF(SF);
So if R2 = 0x80000000 and R4=0x80000000
a) R2 = R2*R4 (ssfr) = 0x80000000;
b) MRF = R2*R4 (ssfr);
R2 = sat MRF(SF) = 0x7FFFFFFF;
2) __builtin_conv_LRtoR or __builtin_conv_RtoLR
The compiler out the same code.
It would be good if almost of builtin function would be descripted
I want to see several new bultin functions:
UR + URxUR - using multiply
R + URxR- using multiply
R + RxUR- using multiply
UR - unsigned fract
And I need that I can do in C++
unsigned int k = 0.53535353ur;
Now I can only do
unsigned int k = 0.53535353r;
Thank you for your input. These suggestions will be considered for a future release.
Retrieving data ...