mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	 e46c234ca4
			
		
	
	
		e46c234ca4
		
	
	
	
	
		
			
			This does change the logic a bit: previously, we didn't forward reverse implications of negated features to the backend, instead relying on the backend to handle the implication itself.
		
			
				
	
	
		
			21 lines
		
	
	
		
			432 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			432 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ add-core-stubs
 | |
| //@ needs-llvm-components: x86
 | |
| //@ compile-flags: --target=x86_64-unknown-linux-gnu
 | |
| //@ compile-flags: -Ctarget-feature=-avx2
 | |
| 
 | |
| #![feature(no_core, lang_items)]
 | |
| #![crate_type = "lib"]
 | |
| #![no_core]
 | |
| 
 | |
| extern crate minicore;
 | |
| use minicore::*;
 | |
| 
 | |
| #[no_mangle]
 | |
| pub unsafe fn banana() {
 | |
|     // CHECK-LABEL: @banana()
 | |
|     // CHECK-SAME: [[BANANAATTRS:#[0-9]+]] {
 | |
| }
 | |
| 
 | |
| // CHECK: attributes [[BANANAATTRS]]
 | |
| // CHECK-SAME: -avx512
 |