Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support f16 on targets where GCC doesn't support it

オープン
#825 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
compilers

調査の方向性

この issue ではファイルもテストも指定されていないため、まず Rust GCC codegen backend における既存の f16 処理と、ABI、変換、算術、キャスト、数学の各エントリポイントを見つけてください。列挙された helper シンボルと pull request rust-lang/rust 150946 をコンテキストとして使用し、GCC にネイティブな f16 サポートがない target 上ですべての 6 つのケースが動作すれば作業完了とします。

索引モデルが issue の本文から書いたものです。

説明

enhancement

@tgross35 mentioned we could support it the following way:

1. Treat it as a u16 in ABI (calling convention, alignment, etc)
2. To extend: call `__extendhfsf2` for f16->f32, `__extendhfdf2` for f16->f64
3. To trunc: call `__truncsfhf2` for f32->f16, `__truncdfhf2` for f64->f16
4. For arithmetic: extend to `f32`, perform the op, truncate back to `f16`
5. For casts to/from int: go via f32
6. For math ops: if I get https://github.com/rust-lang/rust/pull/150946 over the line then this won't be needed in most cases, but anything else can go via f32
主要言語
Rust
スター
1.2k
フォーク
106
平均マージ
6時間 30分
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-lang/rustc_codegen_gcc のほかの issue

rust-lang/rustc_codegen_gcc の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。