[valgrind] [Bug 481131] [PATCH] x86 regtest: fix clobber lists in generated asm statements

2024-02-09 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=481131

Paul Floyd  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REPORTED|RESOLVED

--- Comment #1 from Paul Floyd  ---
Done.

commit 8b3d0828451f8e69e0eaf3807ffbe502aecda428 (HEAD -> master, origin/master,
origin/HEAD, bug481131)
Author: Gra??vydas Ignotas 
Date:   Fri Feb 9 19:02:23 2024 +0200

x86 regtest: fix clobber lists in generated asm statements

Must add result registers also, or else code like this is generated:

  asm(
 "fsave %3\n"
 "movl %2, %%eax\n"
 "cdq\n"
 "movl %%edx, %0\n"
 "movl %%eax, %1\n"
 "frstor %3\n"
 "cld\n"
 : "=m" (result0), "=m" (result1)
 : "m" (preset0), "m" (state[0])
 : "eax"
  );

This crashes on my machine because gcc places some pointer in %%edx.

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 481131] [PATCH] x86 regtest: fix clobber lists in generated asm statements

2024-02-09 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=481131

Paul Floyd  changed:

   What|Removed |Added

   Assignee|jsew...@acm.org |pjfl...@wanadoo.fr
 CC||pjfl...@wanadoo.fr

-- 
You are receiving this mail because:
You are watching all bug changes.