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

Function rv64fd_float_to_int

crates/asm-to-binary/tests/asm_encoding.rs:266–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264
265// --- RV64FD - FP int conversions ---
266
267#[test]
268fn rv64fd_float_to_int() {
269 assert_enc!(FcvtWS::new(10, 20), 0xc00a0553u32);
270 assert_enc!(FcvtWUS::new(10, 20), 0xc01a0553u32);
271 assert_enc!(FcvtLS::new(10, 20), 0xc02a0553u32);
272 assert_enc!(FcvtLUS::new(10, 20), 0xc03a0553u32);
273 assert_enc!(FcvtWD::new(10, 20), 0xc20a0553u32);
274 assert_enc!(FcvtWUD::new(10, 20), 0xc21a0553u32);
275 assert_enc!(FcvtLD::new(10, 20), 0xc22a0553u32);
276 assert_enc!(FcvtLUD::new(10, 20), 0xc23a0553u32);
277}
278

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected