Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 28, 2025. It is now read-only.
/rustPublic archive
forked fromrust-lang/rust

Commit977d16e

Browse files
committed
Auto merge ofrust-lang#127027 - tgross35:f16-f128-math, r=<try>
Add `f16` and `f128` math functionsWIPThis will be pretty finicky among selection failures, the lowering bug, and lack of symbols. But might as well start somewhere.Checks will fail untilrust-lang#126636 makes it to beta, which should be next week (July 19).try-job: aarch64-gnu
2 parents5d76a13 +9dd7bb8 commit977d16e

File tree

12 files changed

+3705
-100
lines changed

12 files changed

+3705
-100
lines changed

‎compiler/rustc_codegen_llvm/src/context.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,10 @@ impl<'ll> CodegenCx<'ll, '_> {
739739
ifn!("llvm.debugtrap",fn() -> void);
740740
ifn!("llvm.frameaddress",fn(t_i32) -> ptr);
741741

742-
ifn!("llvm.powi.f16",fn(t_f16, t_i32) -> t_f16);
743-
ifn!("llvm.powi.f32",fn(t_f32, t_i32) -> t_f32);
744-
ifn!("llvm.powi.f64",fn(t_f64, t_i32) -> t_f64);
745-
ifn!("llvm.powi.f128",fn(t_f128, t_i32) -> t_f128);
742+
ifn!("llvm.powi.f16.i32",fn(t_f16, t_i32) -> t_f16);
743+
ifn!("llvm.powi.f32.i32",fn(t_f32, t_i32) -> t_f32);
744+
ifn!("llvm.powi.f64.i32",fn(t_f64, t_i32) -> t_f64);
745+
ifn!("llvm.powi.f128.i32",fn(t_f128, t_i32) -> t_f128);
746746

747747
ifn!("llvm.pow.f16",fn(t_f16, t_f16) -> t_f16);
748748
ifn!("llvm.pow.f32",fn(t_f32, t_f32) -> t_f32);

‎compiler/rustc_codegen_llvm/src/intrinsic.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ fn get_simple_intrinsic<'ll>(
3535
sym::sqrtf64 =>"llvm.sqrt.f64",
3636
sym::sqrtf128 =>"llvm.sqrt.f128",
3737

38-
sym::powif16 =>"llvm.powi.f16",
39-
sym::powif32 =>"llvm.powi.f32",
40-
sym::powif64 =>"llvm.powi.f64",
41-
sym::powif128 =>"llvm.powi.f128",
38+
sym::powif16 =>"llvm.powi.f16.i32",
39+
sym::powif32 =>"llvm.powi.f32.i32",
40+
sym::powif64 =>"llvm.powi.f64.i32",
41+
sym::powif128 =>"llvm.powi.f128.i32",
4242

4343
sym::sinf16 =>"llvm.sin.f16",
4444
sym::sinf32 =>"llvm.sin.f32",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp