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

Addf16 andf128 inline ASM support forx86 andx86-64#126417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bors merged 1 commit intorust-lang:masterfrombeetrees:f16-f128-inline-asm-x86
Jun 15, 2024

Conversation

@beetrees
Copy link
Contributor

This PR addsf16 andf128 input and output support to inline ASM onx86 andx86-64.f16 vector sizes are taken fromhere.

Relevant issue:#125398
Tracking issue:#116909

@rustbot label +F-f16_and_f128

@rustbot
Copy link
Collaborator

r?@petrochenkov

rustbot has assigned@petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

User? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-compilerRelevant to the compiler team, which will review and decide on the PR/issue. F-f16_and_f128`#![feature(f16)]`, `#![feature(f128)]` labelsJun 13, 2024
@petrochenkov
Copy link
Contributor

r?@Amanieu

@tgross35
Copy link
Contributor

Thanks, there is some overlap here with#126070

Self::xmm_reg =>types!{
sse:I32,I64,F32,F64,
VecI8(16),VecI16(8),VecI32(4),VecI64(2),VecF32(4),VecF64(2);
sse:I32,I64,F16,F32,F64,F128,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I would hold back on addingf128 as an allowed input type since there aren't any instructions that actually support that type.

But for f16 this seems fine.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

While there aren't any instructions that takef128 as an operand,f128 is passed and returned in XMM registers as part of the x86-64System V C ABI so seems worth including.

@Amanieu
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

📌 Commitdfc5514 has been approved byAmanieu

It is now in thequeue for this repository.

@borsbors added S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelsJun 14, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJun 15, 2024
…r=AmanieuAdd `f16` and `f128` inline ASM support for `x86` and `x86-64`This PR adds `f16` and `f128` input and output support to inline ASM on `x86` and `x86-64`. `f16` vector sizes are taken from [here](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html).Relevant issue:rust-lang#125398Tracking issue:rust-lang#116909`@rustbot` label +F-f16_and_f128
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 15, 2024
…iaskrgrRollup of 10 pull requestsSuccessful merges: -rust-lang#125829 (rustc_span: Add conveniences for working with span formats) -rust-lang#126279 (Migrate `inaccessible-temp-dir`, `output-with-hyphens` and `issue-10971-temps-dir` `run-make` tests to `rmake`) -rust-lang#126361 (Unify intrinsics body handling in StableMIR) -rust-lang#126417 (Add `f16` and `f128` inline ASM support for `x86` and `x86-64`) -rust-lang#126424 ( Also sort `crt-static` in `--print target-features` output) -rust-lang#126428 (Polish `std::path::absolute` documentation.) -rust-lang#126429 (Add `f16` and `f128` const eval for binary and unary operationations) -rust-lang#126448 (End support for Python 3.8 in tidy) -rust-lang#126488 (Use `std::path::absolute` in bootstrap) -rust-lang#126511 (.mailmap: Associate both my work and my private email with me)r? `@ghost``@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull requestJun 15, 2024
…iaskrgrRollup of 9 pull requestsSuccessful merges: -rust-lang#125829 (rustc_span: Add conveniences for working with span formats) -rust-lang#126361 (Unify intrinsics body handling in StableMIR) -rust-lang#126417 (Add `f16` and `f128` inline ASM support for `x86` and `x86-64`) -rust-lang#126424 ( Also sort `crt-static` in `--print target-features` output) -rust-lang#126428 (Polish `std::path::absolute` documentation.) -rust-lang#126429 (Add `f16` and `f128` const eval for binary and unary operationations) -rust-lang#126448 (End support for Python 3.8 in tidy) -rust-lang#126488 (Use `std::path::absolute` in bootstrap) -rust-lang#126511 (.mailmap: Associate both my work and my private email with me)r? `@ghost``@rustbot` modify labels: rollup
@borsbors merged commit0f2cc21 intorust-lang:masterJun 15, 2024
@rustbotrustbot added this to the1.81.0 milestoneJun 15, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull requestJun 15, 2024
Rollup merge ofrust-lang#126417 - beetrees:f16-f128-inline-asm-x86, r=AmanieuAdd `f16` and `f128` inline ASM support for `x86` and `x86-64`This PR adds `f16` and `f128` input and output support to inline ASM on `x86` and `x86-64`. `f16` vector sizes are taken from [here](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html).Relevant issue:rust-lang#125398Tracking issue:rust-lang#116909``@rustbot`` label +F-f16_and_f128
@beetreesbeetrees deleted the f16-f128-inline-asm-x86 branchJune 15, 2024 19:10
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AmanieuAmanieuAmanieu left review comments

Assignees

@AmanieuAmanieu

Labels

F-f16_and_f128`#![feature(f16)]`, `#![feature(f128)]`S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Milestone

1.81.0

Development

Successfully merging this pull request may close these issues.

6 participants

@beetrees@rustbot@petrochenkov@tgross35@Amanieu@bors

[8]ページ先頭

©2009-2025 Movatter.jp