diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-28 12:13:33 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-28 12:17:29 -0700 |
commit | 7e8386697aa60c1813019eda3cd2073e6be5b021 (patch) | |
tree | 14659072efa826982a43253af8cc3eb9b4c85381 /test/kr-function-argument-promotion.qbe | |
parent | ab3946c6801be3520beeb79f5500ed1a944d4667 (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/kr-function-argument-promotion.qbe')
0 files changed, 0 insertions, 0 deletions