Skip to content

Commit 3c2e8a7

Browse files
committed
[experimental] Run selected unknown builtins through llvmint
See-Also: immunant#345
1 parent b3dad71 commit 3c2e8a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

c2rust-transpile/src/translator/builtins.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,19 @@ impl<'c> Translation<'c> {
618618
))
619619
}
620620

621+
"__builtin_arm_get_fpscr" => Ok(WithStmts::new_val(mk().path_expr(vec![
622+
"",
623+
"llvmint",
624+
"arm",
625+
"get_fpscr",
626+
]))),
627+
"__builtin_arm_set_fpscr" => Ok(WithStmts::new_val(mk().path_expr(vec![
628+
"",
629+
"llvmint",
630+
"arm",
631+
"set_fpscr",
632+
]))),
633+
621634
_ => Err(format_translation_err!(self.ast_context.display_loc(src_loc), "Unimplemented builtin {}", builtin_name)),
622635
}
623636
}

0 commit comments

Comments
 (0)