mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			220 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			220 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags: -C no-prepopulate-passes
 | |
| 
 | |
| #![feature(intrinsics)]
 | |
| 
 | |
| extern "rust-intrinsic" {
 | |
|     fn sqrtf32(x: f32) -> f32;
 | |
| }
 | |
| // CHECK: @llvm.sqrt.f32(float) #{{[0-9]*}}
 | |
| 
 | |
| fn main() {
 | |
|     unsafe { sqrtf32(0.0f32); }
 | |
| }
 | 
