low_array_add_int.c
306 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 unsigned int a[ARRAYSIZE], b[ARRAYSIZE], z[ARRAYSIZE];
for (int i=0;i<ARRAYSIZE;++i)
z[i] = a[i] + b[i];
return 0;
}