28.2.51 __builtin_sacd

Description

Shifts value by shift and returns the value. For example:

 volatile register int value asm("A");
 int result;

 result = __builtin_sacd(value,3);

Might generate:

sacd A, #3, w0

Prototype

int __builtin_sacd(int value, int shift);

Argument

value – Integer number to be shifted.

shift – Literal amount to shift between -16 and 15

Return Value

Returns the shifted result.

Assembler Operator/ Machine Instruction

sacd

Error Messages

An error message will be displayed if:

  • the result is not an accumulator register
  • the shift value is not a literal within range