[cfe-dev] IR for the difference of two signed integers
anton.yartsev at gmail.com
Mon Mar 29 12:11:50 CDT 2010
While writing tests for AltiVec i found out that the sum of two signed
integers is translated to IR as 'add nsw' while the difference of signed
integers is translated to 'sub' without "No Signed Wrap" keyword. It
seems that corresponding code for producing 'sub nsw' is missing in
method. Attached is the patch that adds code for generating 'sub nsw'
similar to the ScalarExprEmitter::EmitAdd(.) method. Please review.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the cfe-dev