X && 0 and X & 0 are constant 0; X || 1 is constant 1 (#1399)

Fixes #977
This commit is contained in:
Sylvie
2024-06-13 11:09:39 -04:00
committed by GitHub
parent c5c6cc9794
commit dfec7111e2
6 changed files with 65 additions and 2 deletions

6
test/asm/const-zero.out Normal file
View File

@@ -0,0 +1,6 @@
What do you get if you multiply six by seven?
Life, the Universe, and Everything!
Where are we?
Here we are!
$0
$0