Adding support for some missing intrinsics:
_castf32_u32, _castf64_u64, _castu32_f32, _castu64_f64
Details
Details
- Reviewers
craig.topper LuoYuanke RKSimon pengfei - Commits
- rG1f3a15c3973e: [x86] Adding support for some missing intrinsics: _castf32_u32, _castf64_u64…
rC372802: [x86] Adding support for some missing intrinsics: _castf32_u32, _castf64_u64…
rL372802: [x86] Adding support for some missing intrinsics: _castf32_u32, _castf64_u64…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/Headers/ia32intrin.h | ||
---|---|---|
198 ↗ | (On Diff #218845) | There's an unofficial agreement that new x86 intrinsics should have doxygen comments - someday we'll get around to adding them to the existing ones as well..... |
207 ↗ | (On Diff #218845) | Shouldn't the unsigned long long cases be hidden by x86_64 wrappers? |
clang/test/CodeGen/miscellaneous-builtins.c | ||
1 ↗ | (On Diff #218845) | 32-bit target tests? |
32 ↗ | (On Diff #218845) | newline please |
Comment Actions
Also, as its x86 specific miscellaneous-builtins.c should be called x86-builtins.c (or similar).
clang/lib/Headers/ia32intrin.h | ||
---|---|---|
207 ↗ | (On Diff #218845) | icc doesn't restrict this to 64-bit targets. On 64-bit targets it corresponds to movq, but on other targets we can just lower to a 64-bit store and two 32-bit loads in the worst case. |
clang/lib/Headers/ia32intrin.h | ||
---|---|---|
207 ↗ | (On Diff #218845) | Thanks - in which case we should definitely add 32-bit triple tests |