Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/codegen-llvm/intrinsic-no-unnamed-attr.rs

12 lines
186 B
Rust
Raw Permalink Normal View History

[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ compile-flags: -C no-prepopulate-passes
Don't add unnamed address attributes to intrinsics. Intrinsics never have an address, so it doesn't make sense to say that their address is unnamed.
2015-09-06 19:26:41 -05:00
replace some #[rustc_intrinsic] usage with use of the libcore declarations
2025-04-16 14:48:20 +02:00
#![feature(core_intrinsics)]
Don't add unnamed address attributes to intrinsics. Intrinsics never have an address, so it doesn't make sense to say that their address is unnamed.
2015-09-06 19:26:41 -05:00
replace some #[rustc_intrinsic] usage with use of the libcore declarations
2025-04-16 14:48:20 +02:00
use std::intrinsics::sqrtf32;
update/bless tests
2025-04-06 15:12:24 +02:00
Don't add unnamed address attributes to intrinsics. Intrinsics never have an address, so it doesn't make sense to say that their address is unnamed.
2015-09-06 19:26:41 -05:00
// CHECK: @llvm.sqrt.f32(float) #{{[0-9]*}}
fn main() {
Mark float intrinsics with no preconditions as safe
2025-09-17 14:07:23 -04:00
sqrtf32(0.0f32);
Don't add unnamed address attributes to intrinsics. Intrinsics never have an address, so it doesn't make sense to say that their address is unnamed.
2015-09-06 19:26:41 -05:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1181ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API