about summary refs log tree commit diff
path: root/tests/codegen/float/f16.rs
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2024-07-03 13:41:36 +0100
committerbeetrees <b@beetr.ee>2024-07-12 10:47:56 +0100
commitcae9d480bfe930a678fe2744082fc6ef1d957f63 (patch)
tree304ebae7b243216bc560341ace28b9ca864f8a62 /tests/codegen/float/f16.rs
parent0f643c449aea5060de03a0b8fe8288cd1c861e0d (diff)
downloadrust-cae9d480bfe930a678fe2744082fc6ef1d957f63.tar.gz
rust-cae9d480bfe930a678fe2744082fc6ef1d957f63.zip
Adjust tests for x86 "Rust" ABI changes
Diffstat (limited to 'tests/codegen/float/f16.rs')
-rw-r--r--tests/codegen/float/f16.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/codegen/float/f16.rs b/tests/codegen/float/f16.rs
index 96daac869c2..2910d7d3e92 100644
--- a/tests/codegen/float/f16.rs
+++ b/tests/codegen/float/f16.rs
@@ -1,3 +1,8 @@
+// 32-bit x86 returns `f32` and `f64` differently to avoid the x87 stack.
+//@ revisions: x86 other
+//@[x86] only-x86
+//@[other] ignore-x86
+
 // Verify that our intrinsics generate the correct LLVM calls for f16
 
 #![crate_type = "lib"]
@@ -140,14 +145,16 @@ pub fn f16_as_self(a: f16) -> f16 {
     a as f16
 }
 
-// CHECK-LABEL: float @f16_as_f32(
+// other-LABEL: float @f16_as_f32(
+// x86-LABEL: i32 @f16_as_f32(
 #[no_mangle]
 pub fn f16_as_f32(a: f16) -> f32 {
     // CHECK: fpext half %{{.+}} to float
     a as f32
 }
 
-// CHECK-LABEL: double @f16_as_f64(
+// other-LABEL: double @f16_as_f64(
+// x86-LABEL: void @f16_as_f64(
 #[no_mangle]
 pub fn f16_as_f64(a: f16) -> f64 {
     // CHECK: fpext half %{{.+}} to double