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