[llvm] [X86][AVX] Fix handling of out-of-bounds shift amounts in AVX2 vector shift nodes (PR #84426)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 08:24:37 PDT 2024


================
@@ -521,3 +521,276 @@ define <4 x i32> @combine_vec_ashr_positive_splat(<4 x i32> %x, <4 x i32> %y) {
   %2 = ashr <4 x i32> %1, <i32 10, i32 10, i32 10, i32 10>
   ret <4 x i32> %2
 }
+
+define <8 x i16> @combine_vec8i16_ashr_out_of_bound(<8 x i16> %x, <8 x i16> %y) {
----------------
RKSimon wrote:

maybe replace "out_of_bound" with "clamped" ?

https://github.com/llvm/llvm-project/pull/84426


More information about the llvm-commits mailing list