SUMMARY [valgrind/VEX/priv/guest_s390_toIR.c:17401] -> [valgrind/VEX/priv/guest_s390_toIR.c:17407]: (style) Mismatching assignment and comparison, comparison 'imm==16' is always false. Source code is UChar imm = i4 & 0b00001111; if (imm == 0) { put_vr_qw(v1, get_vr_qw(v2)); } else if (imm == 16) { put_vr_qw(v1, get_vr_qw(v3)); imm can never be equal to 16. STEPS TO REPRODUCE 1. 2. 3. OBSERVED RESULT EXPECTED RESULT SOFTWARE VERSIONS (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Created attachment 115505 [details] Drop unnecessary check in s390_irgen_VSLDB Trivial patch to remove the unnecessary special-case handling. If no one objects, I'll push this.
(In reply to Andreas Arnez from comment #1) > Created attachment 115505 [details] > Drop unnecessary check in s390_irgen_VSLDB Pushed. Thanks again for reporting this!
(In reply to Andreas Arnez from comment #2) > Pushed. Thanks again for reporting this! You are welcome. Not everything that static analyser "cppcheck" reports is worth fixing, but this one was. I usually run cppcheck over valgrind once a month or so.