[PATCH] D54719: [Intrinsic] Signed Fixed Point Multiplication Intrinsic
    Craig Topper via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Nov 21 10:47:54 PST 2018
    
    
  
craig.topper added a comment.
Do we have examples of real hardware that implements this sort of instruction?
Right now this intrinsic looks like its just reimplementing what you would get if you just emitted this IR
  %a = sext iX %x to i2X
  %b = sext iX %y to i2X
  %c = mul i2X %a, %b
  %d = lshr i2X %c, PRECISION
  %e = trunc i2X %d to iX
So I'm not sure if there's a need for an intrinsic unless that pattern is difficult to match to an instruction.
Repository:
  rL LLVM
https://reviews.llvm.org/D54719
    
    
More information about the llvm-commits
mailing list