about summary refs log tree commit diff
path: root/tests/codegen/float_math.rs
diff options
context:
space:
mode:
authorFolkert de Vries <flokkievids@gmail.com>2025-07-23 13:26:30 +0000
committerGitHub <noreply@github.com>2025-07-23 13:26:30 +0000
commit0231fa9adfdc4c03d122087a4400a8199b97a369 (patch)
treee783ca2321426d54b49a031bc9e3ceda4f076375 /tests/codegen/float_math.rs
parent75fc5ceefb9dc46a1e0956143c98eb419ce2e3b5 (diff)
parent8f0ffa8125f00af923098b30f390f6597b89d80d (diff)
downloadrust-0231fa9adfdc4c03d122087a4400a8199b97a369.tar.gz
rust-0231fa9adfdc4c03d122087a4400a8199b97a369.zip
Merge pull request #1883 from Kobzol/pull
Rustc pull update
Diffstat (limited to 'tests/codegen/float_math.rs')
-rw-r--r--tests/codegen/float_math.rs87
1 files changed, 0 insertions, 87 deletions
diff --git a/tests/codegen/float_math.rs b/tests/codegen/float_math.rs
deleted file mode 100644
index 9a1e0b4d2d0..00000000000
--- a/tests/codegen/float_math.rs
+++ /dev/null
@@ -1,87 +0,0 @@
-//@ compile-flags: -C no-prepopulate-passes
-
-#![crate_type = "lib"]
-#![feature(core_intrinsics)]
-
-use std::intrinsics::{
-    fadd_algebraic, fadd_fast, fdiv_algebraic, fdiv_fast, fmul_algebraic, fmul_fast,
-    frem_algebraic, frem_fast, fsub_algebraic, fsub_fast,
-};
-
-// CHECK-LABEL: @add
-#[no_mangle]
-pub fn add(x: f32, y: f32) -> f32 {
-    // CHECK: fadd float
-    // CHECK-NOT: fast
-    x + y
-}
-
-// CHECK-LABEL: @test_fadd_algebraic
-#[no_mangle]
-pub fn test_fadd_algebraic(x: f32, y: f32) -> f32 {
-    // CHECK: fadd reassoc nsz arcp contract float %x, %y
-    fadd_algebraic(x, y)
-}
-
-// CHECK-LABEL: @test_fsub_algebraic
-#[no_mangle]
-pub fn test_fsub_algebraic(x: f32, y: f32) -> f32 {
-    // CHECK: fsub reassoc nsz arcp contract float %x, %y
-    fsub_algebraic(x, y)
-}
-
-// CHECK-LABEL: @test_fmul_algebraic
-#[no_mangle]
-pub fn test_fmul_algebraic(x: f32, y: f32) -> f32 {
-    // CHECK: fmul reassoc nsz arcp contract float %x, %y
-    fmul_algebraic(x, y)
-}
-
-// CHECK-LABEL: @test_fdiv_algebraic
-#[no_mangle]
-pub fn test_fdiv_algebraic(x: f32, y: f32) -> f32 {
-    // CHECK: fdiv reassoc nsz arcp contract float %x, %y
-    fdiv_algebraic(x, y)
-}
-
-// CHECK-LABEL: @test_frem_algebraic
-#[no_mangle]
-pub fn test_frem_algebraic(x: f32, y: f32) -> f32 {
-    // CHECK: frem reassoc nsz arcp contract float %x, %y
-    frem_algebraic(x, y)
-}
-
-// CHECK-LABEL: @test_fadd_fast
-#[no_mangle]
-pub fn test_fadd_fast(x: f32, y: f32) -> f32 {
-    // CHECK: fadd fast float %x, %y
-    unsafe { fadd_fast(x, y) }
-}
-
-// CHECK-LABEL: @test_fsub_fast
-#[no_mangle]
-pub fn test_fsub_fast(x: f32, y: f32) -> f32 {
-    // CHECK: fsub fast float %x, %y
-    unsafe { fsub_fast(x, y) }
-}
-
-// CHECK-LABEL: @test_fmul_fast
-#[no_mangle]
-pub fn test_fmul_fast(x: f32, y: f32) -> f32 {
-    // CHECK: fmul fast float %x, %y
-    unsafe { fmul_fast(x, y) }
-}
-
-// CHECK-LABEL: @test_fdiv_fast
-#[no_mangle]
-pub fn test_fdiv_fast(x: f32, y: f32) -> f32 {
-    // CHECK: fdiv fast float %x, %y
-    unsafe { fdiv_fast(x, y) }
-}
-
-// CHECK-LABEL: @test_frem_fast
-#[no_mangle]
-pub fn test_frem_fast(x: f32, y: f32) -> f32 {
-    // CHECK: frem fast float %x, %y
-    unsafe { frem_fast(x, y) }
-}