]> sourceware.org Git - valgrind.git/commitdiff
memcheck regtest arm: add a clobber to r0
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 28 Jan 2024 08:23:18 +0000 (09:23 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 28 Jan 2024 08:23:18 +0000 (09:23 +0100)
This fixes a few of the leak testcases

memcheck/tests/leak.h

index 79e3cd6ac711b4bd3cd02b451c49f97598abeda7..23722a4217923bb096b1b5b5316c21716f0ba355 100644 (file)
    do {                                                                      \
       __asm__ __volatile__ ("movl $0, %ecx\n\t"); \
    } while (0)
+#elif defined(__arm__)
+/* 32bit arm */
+#define CLEAR_CALLER_SAVED_REGS                                              \
+   do {                                                                      \
+      __asm__ __volatile__ ("mov %r0, $0\n\t");                              \
+   } while (0)
 #else
 #define CLEAR_CALLER_SAVED_REGS  /*nothing*/
 #endif
This page took 0.033215 seconds and 5 git commands to generate.