Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/assembly-llvm/asm/aarch64-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ pub unsafe fn issue_75761() {

macro_rules! check {
($func:ident $ty:ident $class:ident $mov:literal $modifier:literal) => {
// FIXME(f16_f128): Change back to `$func(x: $ty) -> $ty` once arm64ec can pass and return
// `f16` and `f128` without LLVM erroring.
// FIXME(f128): Change back to `$func(x: $ty) -> $ty` once arm64ec can pass and return
// `f128` without LLVM erroring.
// LLVM issue: <https://github.com/llvm/llvm-project/issues/94434>
#[no_mangle]
pub unsafe fn $func(inp: &$ty, out: &mut $ty) {
Expand All @@ -117,7 +117,7 @@ macro_rules! check {

macro_rules! check_reg {
($func:ident $ty:ident $reg:tt $mov:literal) => {
// FIXME(f16_f128): See FIXME in `check!`
// FIXME(f128): See FIXME in `check!`
#[no_mangle]
pub unsafe fn $func(inp: &$ty, out: &mut $ty) {
let x = *inp;
Expand Down
10 changes: 9 additions & 1 deletion tests/ui/float/classify-runtime-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//@[opt] compile-flags: -O
//@[noopt] compile-flags: -Zmir-opt-level=0
// ignore-tidy-linelength
#![feature(f16)]

// This tests the float classification functions, for regular runtime code and for const evaluation.

Expand Down Expand Up @@ -50,6 +51,12 @@ macro_rules! assert_test {

macro_rules! suite {
( $tyname:ident => $( $tt:tt )* ) => {
fn f16() {
#[allow(unused)]
type $tyname = f16;
suite_inner!(f16 => $($tt)*);
}

fn f32() {
#[allow(unused)]
type $tyname = f32;
Expand Down Expand Up @@ -121,7 +128,8 @@ suite! { T => // type alias for the type we are testing
}

fn main() {
f16();
f32();
f64();
// FIXME(f16_f128): also test f16 and f128
// FIXME(f128): also test f128
}
Loading