low_add_su10x3b_ptr.c
277 Bytes
////A: --has-swar
//C: -daiteq-swar-enable
#include <stdint.h>
typedef unsigned int su10x3b __attribute__((subword(3)));
volatile su10x3b a, b, z;
int main(void)
{
su10x3b *pa = &a, *pb = &b, *pz = &z;
// volatile unsigned int a,b,z;
*pz = *pa + *pb;
return 0;
}