half_arrays-O2.c
388 Bytes
////C: '-msoft-fp-half'
//A: '--has-fhalf'
//C: '-O2'
#include <stdint.h>
const half c[3] = {1.11H, 2.22H, 3.33H};
int main(void)
{
volatile half a[3] = {1.234567H, 3.1415926H, 2.7182818284H};
volatile half b;
// volatile uint16_t u[3] = {0x1234, 0xABCD, 0x1357};
// volatile uint16_t w;
// asm("nop");
b = c[1];
b = a[2];
// asm("nop");
// w = u[1];
return 0;
}