summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/bittest-intrin.c
Commit message (Collapse)AuthorAgeFilesLines
* [MS] Re-add support for the ARM interlocked bittest intrinscsReid Kleckner2018-06-071-11/+22
| | | | | | | | | | | | | | | Adds support for these intrinsics, which are ARM and ARM64 only: _interlockedbittestandreset_acq _interlockedbittestandreset_rel _interlockedbittestandreset_nf _interlockedbittestandset_acq _interlockedbittestandset_rel _interlockedbittestandset_nf Refactor the bittest intrinsic handling to decompose each intrinsic into its action, its width, and its atomicity. llvm-svn: 334239
* Implement bittest intrinsics generically for non-x86 platformsReid Kleckner2018-06-061-16/+105
| | | | | | | | | | 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. llvm-svn: 334059
* Reimplement the bittest intrinsic family as builtins with inline asmReid Kleckner2018-06-051-0/+35
We need to implement _interlockedbittestandset as a builtin for windows.h, so we might as well do the whole family. It reduces code duplication anyway. Fixes PR33188, a long standing bug in our bittest implementation encountered by Chakra. llvm-svn: 333978
OpenPOWER on IntegriCloud