aboutsummaryrefslogtreecommitdiff
path: root/test/struct-return-2.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-28 12:13:33 -0700
committerMichael Forney <mforney@mforney.org>2021-09-28 12:17:29 -0700
commit7e8386697aa60c1813019eda3cd2073e6be5b021 (patch)
tree14659072efa826982a43253af8cc3eb9b4c85381 /test/struct-return-2.qbe
parentab3946c6801be3520beeb79f5500ed1a944d4667 (diff)
Skip unnecessary conversion to bool for logical and conditional expressions
As in ede6a5c9, if an expression is used only to control a jnz, we don't need to convert it to a 0 or 1 value. QBE ignores the upper 32-bits of the argument to jnz, so the conversion is still needed for pointer, long, and floating point types (including float since -0 has non-zero bit representation).
Diffstat (limited to 'test/struct-return-2.qbe')
0 files changed, 0 insertions, 0 deletions