1
Fork 0

fix few typo in filecheck annotations

This commit is contained in:
klensy 2024-05-11 13:09:21 +03:00
parent be7549f82c
commit d97ed2d349
3 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ use core::cmp::Ordering;
use core::ptr::NonNull; use core::ptr::NonNull;
use core::num::NonZero; use core::num::NonZero;
// CHECK-lABEL: @non_zero_eq // CHECK-LABEL: @non_zero_eq
#[no_mangle] #[no_mangle]
pub fn non_zero_eq(l: Option<NonZero<u32>>, r: Option<NonZero<u32>>) -> bool { pub fn non_zero_eq(l: Option<NonZero<u32>>, r: Option<NonZero<u32>>) -> bool {
// CHECK: start: // CHECK: start:
@ -16,7 +16,7 @@ pub fn non_zero_eq(l: Option<NonZero<u32>>, r: Option<NonZero<u32>>) -> bool {
l == r l == r
} }
// CHECK-lABEL: @non_zero_signed_eq // CHECK-LABEL: @non_zero_signed_eq
#[no_mangle] #[no_mangle]
pub fn non_zero_signed_eq(l: Option<NonZero<i64>>, r: Option<NonZero<i64>>) -> bool { pub fn non_zero_signed_eq(l: Option<NonZero<i64>>, r: Option<NonZero<i64>>) -> bool {
// CHECK: start: // CHECK: start:
@ -25,7 +25,7 @@ pub fn non_zero_signed_eq(l: Option<NonZero<i64>>, r: Option<NonZero<i64>>) -> b
l == r l == r
} }
// CHECK-lABEL: @non_null_eq // CHECK-LABEL: @non_null_eq
#[no_mangle] #[no_mangle]
pub fn non_null_eq(l: Option<NonNull<u8>>, r: Option<NonNull<u8>>) -> bool { pub fn non_null_eq(l: Option<NonNull<u8>>, r: Option<NonNull<u8>>) -> bool {
// CHECK: start: // CHECK: start:
@ -34,7 +34,7 @@ pub fn non_null_eq(l: Option<NonNull<u8>>, r: Option<NonNull<u8>>) -> bool {
l == r l == r
} }
// CHECK-lABEL: @ordering_eq // CHECK-LABEL: @ordering_eq
#[no_mangle] #[no_mangle]
pub fn ordering_eq(l: Option<Ordering>, r: Option<Ordering>) -> bool { pub fn ordering_eq(l: Option<Ordering>, r: Option<Ordering>) -> bool {
// CHECK: start: // CHECK: start:
@ -54,7 +54,7 @@ pub enum EnumWithNiche {
G, G,
} }
// CHECK-lABEL: @niche_eq // CHECK-LABEL: @niche_eq
#[no_mangle] #[no_mangle]
pub fn niche_eq(l: Option<EnumWithNiche>, r: Option<EnumWithNiche>) -> bool { pub fn niche_eq(l: Option<EnumWithNiche>, r: Option<EnumWithNiche>) -> bool {
// CHECK: start: // CHECK: start:
@ -64,7 +64,7 @@ pub fn niche_eq(l: Option<EnumWithNiche>, r: Option<EnumWithNiche>) -> bool {
} }
// FIXME: This should work too // FIXME: This should work too
// // FIXME-CHECK-lABEL: @bool_eq // // FIXME-CHECK-LABEL: @bool_eq
// #[no_mangle] // #[no_mangle]
// pub fn bool_eq(l: Option<bool>, r: Option<bool>) -> bool { // pub fn bool_eq(l: Option<bool>, r: Option<bool>) -> bool {
// // FIXME-CHECK: start: // // FIXME-CHECK: start:

View file

@ -16,7 +16,7 @@
// ASAN: } // ASAN: }
// //
// LSAN-LABEL: define void @test // LSAN-LABEL: define void @test
// LSAN-NO: call // LSAN-NOT: call
// LSAN: } // LSAN: }
#[no_mangle] #[no_mangle]
pub fn test(n: &mut u32) { pub fn test(n: &mut u32) {

View file

@ -8,7 +8,7 @@
#![feature(stdarch_x86_avx512, avx512_target_feature)] #![feature(stdarch_x86_avx512, avx512_target_feature)]
use std::arch::x86_64::*; use std::arch::x86_64::*;
// CHECK-label: @demo( // CHECK-LABEL: @demo(
#[no_mangle] #[no_mangle]
#[target_feature(enable = "avx512f")] // Function-level target feature mismatches inhibit inlining #[target_feature(enable = "avx512f")] // Function-level target feature mismatches inhibit inlining
pub unsafe fn demo() -> bool { pub unsafe fn demo() -> bool {