Article View: comp.arch
Article #747Re: CISC are not "unreduced"
From: Anton Ertl
Date: Sun, 15 Nov 2026 07:18
Date: Sun, 15 Nov 2026 07:18
33 lines
2968 bytes
2968 bytes
Terje Mathisen <terje.mathisen@tmsw.no> writes: >Anton Ertl wrote: >> Michael S <already5chosen@yahoo.com> writes: >>> How would you do it for non-associative arithmetic opcodes like >>> floating-point? >> >> IIRC Mitch Alsup's answer to FP reduction is an accumulator with about >> 2100 bits or so. It's not clear to me how one can accumulate 16 DP FP >> values per cycle, like Zen5 can do. > >That >Zen5 needs a pair of 512-bit accumulators to do it, right? You use n*2 ZMM (512-bit) registers to accumulate stuff in the main loop, where n>= the latency in cycles of the fadd (or fma, if that is used). The latency is 2 cycles for Zen6, but higher for Zen5. In the end you use pairwise addition with ld(16*n) levels to reduce these n*2 ZMM registers to a single FP value. >Total number of accumulator bits are in the same ballpark, but a >Superaccumulator will give the correct/exact answer totally independent >of the aggregation order, something which you definitely cannot claim >for that 16-wide Zen5 AVX-512 version. Yes. So one has to code this explicitly, or, when using compiler auto-vectorization, use a flag like -ffast-math to tell the compiler that you don't care for bit-accurate results and that it can re-associate FP addition and multipliation. - anton -- 'Anyone trying for "industrial quality" ISA should avoid undefined behavior.' Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID:
<2026Nov15.081825@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cpqih$acf5$1@dont-email.me> <11cuoa4$21279$1@dont-email.me> <jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org> <1794357499-5857@newsgrouper.org> <jwvik23o10u.fsf-monnier+comp.arch@gnu.org> <2026Nov12.072121@mips.complang.tuwien.ac.at> <jwvy0axmx8f.fsf-monnier+comp.arch@gnu.org> <2026Nov13.192642@mips.complang.tuwien.ac.at> <2026Nov13.225125@mips.complang.tuwien.ac.at> <20261114183612.00006a3f@yahoo.com> <2026Nov14.185307@mips.complang.tuwien.ac.at> <11dansp$2apcc$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch Subject: Re: CISC are not "unreduced" Date: Sun, 15 Nov 2026 07:18:25 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 33 Message-ID: <2026Nov15.081825@mips.complang.tuwien.ac.at> References: <11cpqih$acf5$1@dont-email.me> <11cuoa4$21279$1@dont-email.me> <jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org> <1794357499-5857@newsgrouper.org> <jwvik23o10u.fsf-monnier+comp.arch@gnu.org> <2026Nov12.072121@mips.complang.tuwien.ac.at> <jwvy0axmx8f.fsf-monnier+comp.arch@gnu.org> <2026Nov13.192642@mips.complang.tuwien.ac.at> <2026Nov13.225125@mips.complang.tuwien.ac.at> <20261114183612.00006a3f@yahoo.com> <2026Nov14.185307@mips.complang.tuwien.ac.at> <11dansp$2apcc$1@dont-email.me> Injection-Date: Sun, 15 Nov 2026 07:29:02 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2689317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nE9SZi/D/4ah/iQWq2anN"; posting-host="c546d9c3efc054d217948ebb9c0ff5c8" Cancel-Lock: sha1:oNaQLKlod05+rcBXfG3YytE+4KA= sha256:zGJPQPttLEK5veE9gKVxi4hA+DFDIGRmRYG3qboXo6M= sha1:faADBU+dv42l4hQYacUINzfz+64= sha256:siCl0L1MSnh29vNmBJ8+DjZ7h7APG1ebN3qmGjPVttY= X-newsreader: xrn 10.11