[clang] [llvm] Intrinsic: introduce minimumnum and maximumnum (PR #93841)
YunQiang Su via cfe-commits
cfe-commits at lists.llvm.org
Thu May 30 20:29:31 PDT 2024
wzssyqa wrote:
TODO: implement for architectures that don't have `fmin/fmax` instructions:
This is the example of MIPS pre-R6:
```
mins:
.set noreorder
.set nomacro
mtc1 $0,$f1
add.s $f0,$f12,$f1
add.s $f13,$f13,$f1
c.un.s $fcc0,$f0,$f0
movt.s $f0,$f13,$fcc0
c.un.s $fcc0,$f13,$f13
movt.s $f13,$f0,$fcc0
c.ult.s $fcc0,$f13,$f0
movt.s $f0,$f13,$fcc0
jr $31
```
https://github.com/llvm/llvm-project/pull/93841
More information about the cfe-commits
mailing list