6.58.4. ARC Built-in Functions

6.58.4 ARC Built-in Functions

The following built-in functions are provided for ARC targets. The built-ins generate the corresponding assembly instructions. In the examples given below, the generated code often requires an operand or result to be in a register. Where necessary further code will be generated to ensure this is true, but for brevity this is not described in each case.

Note: Using a built-in to generate an instruction not supported by a target may cause problems. At present the compiler is not guaranteed to detect such misuse, and as a result an internal compiler error may be generated.

— Built-in Function: int __builtin_arc_aligned (void *val, int alignval)

Return 1 if val is known to have the byte alignment given by alignval, otherwise return 0. Note that this is different from

__al