[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1813460] Re: qemu/target/arm/translate-a64.c:2039: bad
From: |
dcb |
Subject: |
[Qemu-devel] [Bug 1813460] Re: qemu/target/arm/translate-a64.c:2039: bad test ? |
Date: |
Sun, 27 Jan 2019 09:31:44 -0000 |
Maybe using gcc flag -Wlogical-op might help find bugs like this in
future.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1813460
Title:
qemu/target/arm/translate-a64.c:2039: bad test ?
Status in QEMU:
New
Bug description:
qemu/target/arm/translate-a64.c:2039]: (warning) Logical disjunction
always evaluates to true: op3 != 2 || op3 != 3.
Source code is
if (op3 != 2 || op3 != 3) {
Maybe better code
if (op3 != 2 && op3 != 3) {
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1813460/+subscriptions