[cfe-dev] -fcatch-undefined-behavior testing

Mike Stump mrs at apple.com
Wed Dec 16 14:58:35 PST 2009


On Dec 16, 2009, at 11:36 AM, Török Edwin wrote:
> Ok. As a short term solution could it generate an int3 though instead of an illegal instruction?

Which llvm intrinsic is that?

> Yeah the branch for the constant case would be fine, however it would mean a penalty for the non-constant shift case.

As I said, for an optimizing compiler, it could omit the penalty, if it cared.



More information about the cfe-dev mailing list