]> granicus.if.org Git - clang/commit
Implement bittest intrinsics generically for non-x86 platforms
authorReid Kleckner <rnk@google.com>
Wed, 6 Jun 2018 01:35:08 +0000 (01:35 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 6 Jun 2018 01:35:08 +0000 (01:35 +0000)
commit09fc95cbbcf39afa3be6d98116b01a8cb4baa2bd
tree65baf118d575d8b3b722a41dfd1a06e367517bd3
parent26b20caa52ce8f4a08d1f8b6e2e927a490ae5e0c
Implement bittest intrinsics generically for non-x86 platforms

I tested these locally on an x86 machine by disabling the inline asm
codepath and confirming that it does the same bitflips as we do with the
inline asm.

Addresses code review feedback.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334059 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/bittest-intrin.c