craig.topper added a comment. Looking at this again. This doesn't match the gcc implementation of the builtins. Unless their header file is also wrong. Can you clarify? Repository: rL LLVM http://reviews.llvm.org/D20321