-
- Downloads
[X86][SSE] Replace (V)CVTTPS2DQ and VCVTTPD2DQ truncating (round to zero)...
[X86][SSE] Replace (V)CVTTPS2DQ and VCVTTPD2DQ truncating (round to zero) f32/f64 to i32 with generic IR (clang) The 'cvtt' truncation (round to zero) conversions can be safely represented as generic __builtin_convertvector (fptosi) calls instead of x86 intrinsics. We already do this (implicitly) for the scalar equivalents. Note: I looked at updating _mm_cvttpd_epi32 as well but this still requires a lot more backend work to correctly lower (both for debug and optimized builds). Differential Revision: http://reviews.llvm.org/D20859 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271436 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/BuiltinsX86.def 0 additions, 3 deletionsinclude/clang/Basic/BuiltinsX86.def
- lib/Headers/avxintrin.h 2 additions, 2 deletionslib/Headers/avxintrin.h
- lib/Headers/emmintrin.h 1 addition, 1 deletionlib/Headers/emmintrin.h
- test/CodeGen/avx-builtins.c 2 additions, 2 deletionstest/CodeGen/avx-builtins.c
- test/CodeGen/builtins-x86.c 0 additions, 3 deletionstest/CodeGen/builtins-x86.c
- test/CodeGen/sse2-builtins.c 1 addition, 1 deletiontest/CodeGen/sse2-builtins.c
Loading
Please register or sign in to comment