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(16);
15 c1
[0] = 'x'; c1
[1] = 'y'; c1
[2] = 'x'; c1
[3] = 0;
17 char* c2
= "foobarxyzzyfoobarzyzzy"; // strlen > 16
21 "movdqu (%1), %%xmm4" "\n\t"
22 "movdqu (%2), %%xmm5" "\n\t"
23 "pxor %%xmm4, %%xmm5" "\n\t"
24 "ptest %%xmm5, %%xmm5" "\n\t"
31 : /*OUT*/"=r"(res
) : /*IN*/"r"(c1
),"r"(c2
) : /*TRASH*/"xmm4","xmm5","cc"
33 printf("res = %lld\n", res
);