- Adds the command line flag for clzero.
- Includes the clzero flag under znver1.
- Defines the macro for clzero.
- Adds a new file which has the intrinsic definition for clzero instruction.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Please add a test for __builtin_ia32_clzero to llvm\tools\clang\test\CodeGen\builtins-x86.c
lib/Headers/clzerointrin.h | ||
---|---|---|
53 | Why the extra copyright header - this wasn't added to previous AMD only instructions | |
65 | Would it be possible to add a doxygen description? See some of the other x86 headers for examples. |
LGTM, but i'll make some additional testing changes before committing it.
-Add CLZERO checks to test/Preprocessor/predefined-arch-macros.c for znver1
-Add command line testing to test/Driver/x86-target-features.c
-Add a test to verify the generated IR.
Thank you @craig.topper.
Just want to check if the patch can be commited to 4.0 release branch as well.
I understand that the branch is in blocker bug-fix stage but just want to get it confirmed.
Why the extra copyright header - this wasn't added to previous AMD only instructions