2 // This should run on memcheck without reporting an undef-value error.
3 // See https://bugzilla.redhat.com/show_bug.cgi?id=2257546
14 char* c1
= malloc(32);
15 c1
[0] = 'x'; c1
[1] = 'y'; c1
[2] = 'x'; c1
[3] = 0;
17 char* c2
= "foobarxyzzyfoobarzyzzyandawholelotmoretoo"; // strlen > 32
21 "vmovdqu (%1), %%ymm4" "\n\t"
22 "vmovdqu (%2), %%ymm5" "\n\t"
23 "vpxor %%ymm4, %%ymm5, %%ymm5" "\n\t"
24 "vptest %%ymm5, %%ymm5" "\n\t"
31 : /*OUT*/"=r"(res
) : /*IN*/"r"(c1
),"r"(c2
) : /*TRASH*/"ymm4","ymm5","cc"
33 printf("res = %lld\n", res
);