()
| 102 | }"#, |
| 103 | ); |
| 104 | assert!(asm.contains("flw"), "expected 'flw' for f32 load"); |
| 105 | assert!(asm.contains("fsw"), "expected 'fsw' for f32 store"); |
| 106 | } |
| 107 | |
| 108 | #[test] |
| 109 | fn f32_arithmetic_uses_float_instructions() { |
| 110 | let asm = compile_inline( |
| 111 | r#"main: () -> f32 { |
| 112 | a: f32 = 1.5 |
| 113 | b: f32 = 2.0 |
| 114 | c: f32 = a + b |
| 115 | d: f32 = c * 2.0 |
| 116 | return d |
| 117 | }"#, |
| 118 | ); |
| 119 | assert!( |
nothing calls this directly
no test coverage detected