This is wrong for x87 long doubles (implicit '1' always present, so the count is off by one) and PPC double doubles (weird 128 bit format). It's probably best to just hardcode the value for all supported fp formats. http://reviews.llvm.org/D8413 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/