[PATCH] D44559: [Sema] Wrong width of result of mul operation

Andrew V. Tischenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 30 01:31:12 PDT 2018


avt77 added a comment.

In fact I think about mul only because of X86 nature: it always put the mul result in wider place (than its args). (Don't know about other CPUs - maybe the same?) As result we could change the current design to reflect this feature:

8bit x 8bit -> 16bit
16bit x 16bit -> 32bit
...


https://reviews.llvm.org/D44559





More information about the cfe-commits mailing list