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

            Bug ID: 503677
           Summary: duplicated-cond compiler warning in dis_RV64M
    Classification: Developer tools
           Product: valgrind
           Version: 3.25 GIT
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: cmb...@sent.com
  Target Milestone: ---

SUMMARY

This looks harmless, but GCC reports a -Wduplicated-cond warning in
VEX/priv/guest_riscv64_toIR.c:

priv/guest_riscv64_toIR.c: In function ‘dis_RV64M’:
priv/guest_riscv64_toIR.c:1758:25: warning: duplicated ‘if’ condition
[-Wduplicated-cond]
 1758 |       } else if (funct3 == 0b010) {
      |                  ~~~~~~~^~~~~~~~
priv/guest_riscv64_toIR.c:1756:18: note: previously used here
 1756 |       if (funct3 == 0b010) {
      |           ~~~~~~~^~~~~~~~

Here is the relevant code:

1756      if (funct3 == 0b010) {
1757         /* Invalid {MUL,DIV,REM}<x>, fall through. */
1758      } else if (funct3 == 0b010) {
1759         /* MULHSU, not currently handled, fall through. */
1760      } else {


SOFTWARE/OS VERSIONS

Commit 933e542b431 compiled on Arch Linux

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

Reply via email to