diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2021-04-14 15:07:36 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2021-04-14 15:25:06 -0700 |
| commit | ea3398ad9856acfc3ac93991389de92597f42884 (patch) | |
| tree | 8e3711e4fdf2a33d75a07b1b7bf7d37f229c5619 /src | |
| parent | a7c4c3ee713aa7e4e5c8638146efa8ad5e7d0de6 (diff) | |
| download | rust-ea3398ad9856acfc3ac93991389de92597f42884.tar.gz rust-ea3398ad9856acfc3ac93991389de92597f42884.zip | |
Add more SIMD math.h intrinsics
LLVM supports many functions from math.h in its IR. Many of these have single-instruction variants on various platforms. So, let's add them so std::arch can use them. Yes, exact comparison is intentional: rounding must always return a valid integer-equal value, except for inf/NAN.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intrinsics/simd.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intrinsics/simd.rs b/src/intrinsics/simd.rs index c7ce32b385e..27fc2abedc7 100644 --- a/src/intrinsics/simd.rs +++ b/src/intrinsics/simd.rs @@ -277,5 +277,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>( // simd_select // simd_rem // simd_neg + // simd_trunc + // simd_floor } } |
