-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[Arm64EC] Add support for half
#152843
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[Arm64EC] Add support for half
#152843
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |||||
| ; RUN: %if aarch64-registered-target %{ llc %s -o - -mtriple=aarch64-apple-darwin | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if aarch64-registered-target %{ llc %s -o - -mtriple=aarch64-pc-windows-msvc | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if aarch64-registered-target %{ llc %s -o - -mtriple=aarch64-unknown-linux-gnu | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if aarch64-registered-target %{ llc %s -o - -mtriple=arm64ec-pc-windows-msvc | FileCheck %s --check-prefixes=EC,CHECK %} | ||||||
| ; RUN: %if aarch64-registered-target %{ llc %s -o - -mtriple=arm64ec-pc-windows-msvc | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if amdgpu-registered-target %{ llc %s -o - -mtriple=amdgcn-amd-amdhsa | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if arc-registered-target %{ llc %s -o - -mtriple=arc-elf | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if arm-registered-target %{ llc %s -o - -mtriple=arm-unknown-linux-gnueabi | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
|
|
@@ -46,8 +46,7 @@ | |||||
| ; RUN: %if xcore-registered-target %{ llc %s -o - -mtriple=xcore-unknown-unknown | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
| ; RUN: %if xtensa-registered-target %{ llc %s -o - -mtriple=xtensa-none-elf | FileCheck %s --check-prefixes=ALL,CHECK %} | ||||||
|
|
||||||
| ; Note that arm64ec labels don't have a `:` so use `EC`, other tests do need the | ||||||
| ; `:` so directives with the function names don't get treated as labels. | ||||||
| ; Note that arm64ec labels are quoted, hence the `{{"?}}:`. | ||||||
|
|
||||||
| ; Codegen tests don't work the same for graphics targets. Add a dummy directive | ||||||
| ; for filecheck, just make sure we don't crash. | ||||||
|
|
@@ -60,8 +59,7 @@ | |||||
| ; Regression test for https://github.com/llvm/llvm-project/issues/97981. | ||||||
|
|
||||||
| define half @from_bits(i16 %bits) nounwind { | ||||||
| ; ALL-LABEL: from_bits: | ||||||
| ; EC-LABEL: from_bits | ||||||
| ; ALL-LABEL: from_bits{{"?}}: | ||||||
| ; CHECK-NOT: __extend | ||||||
| ; CHECK-NOT: __trunc | ||||||
| ; CHECK-NOT: __gnu | ||||||
|
|
@@ -71,8 +69,7 @@ define half @from_bits(i16 %bits) nounwind { | |||||
| } | ||||||
|
|
||||||
| define i16 @to_bits(half %f) nounwind { | ||||||
| ; ALL-LABEL: to_bits: | ||||||
| ; EC-LABEL: to_bits | ||||||
| ; ALL-LABEL: to_bits{{"}}: | ||||||
| ; CHECK-NOT: __extend | ||||||
| ; CHECK-NOT: __trunc | ||||||
| ; CHECK-NOT: __gnu | ||||||
|
|
@@ -85,8 +82,7 @@ define i16 @to_bits(half %f) nounwind { | |||||
| ; https://github.com/llvm/llvm-project/issues/117337 and similar issues. | ||||||
|
|
||||||
| define half @check_freeze(half %f) nounwind { | ||||||
| ; ALL-LABEL: check_freeze: | ||||||
| ; EC-LABEL: check_freeze | ||||||
| ; ALL-LABEL: check_freeze{{"}}: | ||||||
|
||||||
| ; ALL-LABEL: check_freeze{{"}}: | |
| ; ALL-LABEL: check_freeze{{"?}}: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...totally forgot to retest this file, thanks. Updated (passes locally)