[PATCH] D32616: [X86] Add more patterns for BZHI isel

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 30 11:25:55 PDT 2017


RKSimon added a comment.

In https://reviews.llvm.org/D32616#741875, @craig.topper wrote:

> So AMD's description is similar to the incorrect Intel description. Do you have an AMD machine that you can verify this with?
>
> I tested with
>
> printf("%x", _bzhi_u32(0xffffffff, 32));
>
> On Haswell that returned 0xffffffff.


Excavator returned 0xffffffff as well. The Ryzen is in pieces so I can't test it right now.


https://reviews.llvm.org/D32616





More information about the llvm-commits mailing list