MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / f32_arithmetic_uses_float_instructions

Function f32_arithmetic_uses_float_instructions

tests/integration/asm_fixes.rs:104–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]
109fn 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!(

Callers

nothing calls this directly

Calls 1

compile_inlineFunction · 0.85

Tested by

no test coverage detected