Fixup 2 ui tests using changed intrinsics

This commit is contained in:
Maybe Waffle 2024-04-16 12:39:53 +00:00
parent c2046c4b09
commit 4b6bbcbaa3
2 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ use std::intrinsics;
#[derive(Copy, Clone)]
pub struct Foo(i64);
pub fn test_cttz(v: Foo) -> Foo {
pub fn test_cttz(v: Foo) -> u32 {
intrinsics::cttz(v)
//~^ ERROR `cttz` intrinsic: expected basic integer type, found `Foo`
}

View File

@ -6,13 +6,13 @@
mod rusti {
extern "rust-intrinsic" {
#[rustc_safe_intrinsic]
pub fn ctpop<T>(x: T) -> T;
pub fn ctpop<T>(x: T) -> u32;
#[rustc_safe_intrinsic]
pub fn ctlz<T>(x: T) -> T;
pub fn ctlz_nonzero<T>(x: T) -> T;
pub fn ctlz<T>(x: T) -> u32;
pub fn ctlz_nonzero<T>(x: T) -> u32;
#[rustc_safe_intrinsic]
pub fn cttz<T>(x: T) -> T;
pub fn cttz_nonzero<T>(x: T) -> T;
pub fn cttz<T>(x: T) -> u32;
pub fn cttz_nonzero<T>(x: T) -> u32;
#[rustc_safe_intrinsic]
pub fn bswap<T>(x: T) -> T;
#[rustc_safe_intrinsic]