half_arrays-sf.c
339 Bytes
////C: '-msoft-fp-half'
////A: '--has-fhalf'
//C: '-msoft-float -O0'
#include <stdint.h>
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 = a[2];
asm("nop");
w = u[1];
return 0;
}