]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
memcheck/tests/amd64/rh2257546_256.c: use xmm instead of ymm in clobbers
authorMark Wielaard <mark@klomp.org>
Thu, 23 Jan 2025 21:59:42 +0000 (22:59 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 23 Jan 2025 21:59:47 +0000 (22:59 +0100)
Older gcc (4.8.5) doesn't recognize yym registers as clobbers. Use xmm
instead, as in the AVX configure checks, which are the same register
(half) just with a different name.

memcheck/tests/amd64/rh2257546_256.c

index 4b522c7e46ff8a9eb292a0f2872e41279e55ec69..9f5775cd07db007b6c6046ca24727eb351d0009c 100644 (file)
@@ -28,7 +28,7 @@ int main ( void )
    "zzz1f:"                            "\n\t"
    "mov $88, %0"                       "\n"
    "zzzafter:"                         "\n\t"
-   : /*OUT*/"=r"(res) : /*IN*/"r"(c1),"r"(c2) : /*TRASH*/"ymm4","ymm5","cc"
+   : /*OUT*/"=r"(res) : /*IN*/"r"(c1),"r"(c2) : /*TRASH*/"xmm4","xmm5","cc"
    );
    printf("res = %lld\n", res);
    free(c1);