Skip to content

[LangRef] Fix examples for float to int saturating intrinsics #115629

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 1 commit into from
Nov 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/docs/LangRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20392,8 +20392,8 @@ Example:

.. code-block:: text

%a = call i8 @llvm.fptoui.sat.i8.f32(float 123.9) ; yields i8: 123
%b = call i8 @llvm.fptoui.sat.i8.f32(float -5.7) ; yields i8: 0
%a = call i8 @llvm.fptoui.sat.i8.f32(float 123.875) ; yields i8: 123
%b = call i8 @llvm.fptoui.sat.i8.f32(float -5.75) ; yields i8: 0
%c = call i8 @llvm.fptoui.sat.i8.f32(float 377.0) ; yields i8: 255
%d = call i8 @llvm.fptoui.sat.i8.f32(float 0xFFF8000000000000) ; yields i8: 0

Expand Down Expand Up @@ -20445,8 +20445,8 @@ Example:

.. code-block:: text

%a = call i8 @llvm.fptosi.sat.i8.f32(float 23.9) ; yields i8: 23
%b = call i8 @llvm.fptosi.sat.i8.f32(float -130.8) ; yields i8: -128
%a = call i8 @llvm.fptosi.sat.i8.f32(float 23.875) ; yields i8: 23
%b = call i8 @llvm.fptosi.sat.i8.f32(float -130.75) ; yields i8: -128
%c = call i8 @llvm.fptosi.sat.i8.f32(float 999.0) ; yields i8: 127
%d = call i8 @llvm.fptosi.sat.i8.f32(float 0xFFF8000000000000) ; yields i8: 0

Expand Down
Loading