Skip to content

Conversation

@Xinmudotmoe
Copy link

Currently, there are no officially released half-precision and quad-precision floating-point instructions for the LoongArch architecture.
This request aims to ensure that when there are projects that require this functionality, such as ROCM, PyTorch, etc., compilation, testing, and execution produce correct results instead of the current compilation errors.

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" backend:loongarch labels Oct 12, 2023
@github-actions
Copy link

github-actions bot commented Oct 12, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Contributor

@xen0n xen0n left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution and welcome!

As for the commit message, please take a look at the existing commits for the general feel. (For example, people typically prefix the commit title with the involved topic(s) in brackets, and use a verb phrase for the remaining.)

Besides, the LLVM side of the change lacks a test case; you can look at the other targets for reference.

}

setOperationAction(ISD::FP16_TO_FP, MVT::f32, Expand);
setOperationAction(ISD::FP_TO_FP16, MVT::f32, Expand);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please shrink those whitespaces; I believe that's what triggered the style checker. (After the transition away from Phabricator/Arcanist workflow, you have to set up your own auto-formatting and/or pre-commit linting hooks.)

@Xinmudotmoe Xinmudotmoe changed the title LoongArch fp16,fp128 basic support [Clang][LoongArch] Support basic fp16, fp128 Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:loongarch clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category

3 participants