Skip to content

[llvm] Add extra tests for atomicrmw fmaximum/fminimum #138252

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions llvm/bindings/ocaml/llvm/llvm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ module AtomicRMWBinOp = struct
| UDec_Wrap
| USub_Cond
| USub_Sat
| FMaximum
| FMinimum
end

module ValueKind = struct
Expand Down
2 changes: 2 additions & 0 deletions llvm/bindings/ocaml/llvm/llvm.mli
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ module AtomicRMWBinOp : sig
| UDec_Wrap
| USub_Cond
| USub_Sat
| FMaximum
| FMinimum
end

(** The kind of an [llvalue], the result of [classify_value v].
Expand Down
2 changes: 2 additions & 0 deletions llvm/test/Bindings/llvm-c/atomics.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ define void @atomic_rmw_ops(ptr %p, i32 %i, float %f) {
%a.fsub = atomicrmw fsub ptr %p, float %f acq_rel, align 8
%a.fmax = atomicrmw fmax ptr %p, float %f acq_rel, align 8
%a.fmin = atomicrmw fmin ptr %p, float %f acq_rel, align 8
%a.fmaximum = atomicrmw fmaximum ptr %p, float %f acq_rel, align 8
%a.fminimum = atomicrmw fminimum ptr %p, float %f acq_rel, align 8

%a.uinc_wrap = atomicrmw uinc_wrap ptr %p, i32 %i acq_rel, align 8
%a.udec_wrap = atomicrmw udec_wrap ptr %p, i32 %i acq_rel, align 8
Expand Down
Loading