https://bugs.kde.org/show_bug.cgi?id=385843

            Bug ID: 385843
           Summary: [PATCH] ARM: mark caller-save VFP registes as trashed
                    by calls
           Product: valgrind
           Version: 3.14 SVN
          Platform: unspecified
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: saa...@cisco.com
  Target Milestone: ---

Created attachment 108391
  --> https://bugs.kde.org/attachment.cgi?id=108391&action=edit
ARMv7 NEON test program

The attached test program gives the wrong output when run with the memcheck
tool. The attached patch makes the issue disappear. The issue depends on how
valgrind is built.

With the right combination of compiler and compiler flags (e.g. using
-mfpu=neon makes a difference here with GCC 7.2.0), the helper functions in
memcheck/mc_main.c end up using the same (caller-save) VFP registers as used by
VEX.

According to
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042f/IHI0042F_aapcs.pdf
(§5.1.2.1 VFP register usage conventions): VFP registers d16-d31 (q8-q15), if
present, do not need to preserved (by the callee).

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

Reply via email to