(source: &str)
| 27 | pipeline.compile_ir_to_assembly(&result.ir_program).expect("valid IR layout") |
| 28 | } |
| 29 | |
| 30 | // -- Store widths -------------------------------------------------------------- |
| 31 | |
| 32 | #[test] |
| 33 | fn i32_stores_use_sw_not_sd() { |
| 34 | let asm = compile_fixture("arithmetic", "01_basic_arithmetic"); |
| 35 | assert!(asm.contains("sw"), "expected 'sw' for i32 stores"); |
| 36 | } |
| 37 | |
| 38 | #[test] |
| 39 | fn bool_stores_use_sb() { |