about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-04-09 01:56:14 +0000
committerTrevor Gross <t.gross35@gmail.com>2025-04-08 22:04:58 -0500
commit4e5cbbeda169377e5025a979105d0dac31bf560a (patch)
treef2120e4a7e8ee746a1530193ea110afc8360e34b /tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs
parent725759602a1ca7bca8f2acf1b2cb13e7cb7fa01d (diff)
downloadrust-4e5cbbeda169377e5025a979105d0dac31bf560a.tar.gz
rust-4e5cbbeda169377e5025a979105d0dac31bf560a.zip
Replace calls to `core::arch` intrinsics with assembly
Some backends may replace calls to `core::arch` with multiple calls to
`sqrt` [1], which becomes recursive. Help mitigate this by replacing the
call with assembly.

Results in the same assembly as the current implementation when built
with optimizations.

[1]: https://github.com/rust-lang/compiler-builtins/issues/649
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs')
0 files changed, 0 insertions, 0 deletions