remove comments from asm
This commit is contained in:
parent
48bbcdec5e
commit
9194e35851
|
@ -2139,7 +2139,6 @@ impl Mir {
|
||||||
let inst = self.nodes[i];
|
let inst = self.nodes[i];
|
||||||
let data = self.data[i];
|
let data = self.data[i];
|
||||||
|
|
||||||
write!(func.current_branch(), "// ");
|
|
||||||
self.render_node(func.current_branch(), strings, &liveness, node);
|
self.render_node(func.current_branch(), strings, &liveness, node);
|
||||||
|
|
||||||
match inst {
|
match inst {
|
||||||
|
|
8
tests/legal/boolean_logic.sea
Normal file
8
tests/legal/boolean_logic.sea
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fn square_of_greater(a: i32, b: i32) -> i32 {
|
||||||
|
let asqrt: i32 = a * a;
|
||||||
|
let bsqrt: i32 = b * b;
|
||||||
|
|
||||||
|
let gt: bool = a > b;
|
||||||
|
|
||||||
|
(asqrt * gt as i32) + (bsqrt * !gt as i32)
|
||||||
|
}
|
Loading…
Reference in a new issue