[LLVMdev] Calls to functions with signext/zeroext return values

Cameron Zwarich zwarich at apple.com
Wed Mar 16 09:35:16 PDT 2011


On Mar 16, 2011, at 9:31 AM, Cameron Zwarich wrote:

> Promoting the return value is unsafe for bool returns on x86-64, which in the latest revision of the ABI only guarantees that the top 7 bits of the 8-bit register are 0.

My comment is a bit off, because the question of what type to make the return value is somewhat orthogonal to the question of which zext assert we should add.

Cameron



More information about the llvm-dev mailing list