low_array_add_su2x11b.c
311 Bytes
////A: --has-swar
//C: -daiteq-swar-enable
#include <stdint.h>
#define ARRAYSIZE 20
typedef unsigned int su2x11b __attribute__((subword(11)));
int main(void)
{
volatile su2x11b a[ARRAYSIZE], b[ARRAYSIZE], z[ARRAYSIZE];
for (register int i=0;i<ARRAYSIZE;++i)
z[i] = a[i] + b[i];
return 0;
}