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

            Bug ID: 440906
           Summary: powerpc valgrind testsuite; update
                    test_isa_3_1_common.c to avoid modulo against hard
                    regs
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: will_schm...@vnet.ibm.com
  Target Milestone: ---

SUMMARY
Due to a GCC issue (PR101882) seen against recent GCC builds, we
want to rework our code to avoid attempting a modulo operation
with both the input and output defined as a hard register.
ra is earlier defined as
    register uint64_t ra   __asm__  ("r20");
and current code attempts a 
    ra = ra % 9;
In this case, we can apply the modulo operation to the args[] array
value that was previously used to initialize the ra value.
    ra = args[vrai] % 9;

Patch attached.

STEPS TO REPRODUCE
1. Build valgrind for power9 or power10 using a recent (~ Aug 2021) GCC.
2. See "impossible constraint" error emitted from GCC.
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to