[clang] [CIR] Upstream shift operators for VectorType (PR #139465)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon May 12 10:19:55 PDT 2025
================
@@ -213,3 +213,68 @@ void foo4() {
// OGCG: %[[TMP2:.*]] = load i32, ptr %[[IDX]], align 4
// OGCG: %[[ELE:.*]] = extractelement <4 x i32> %[[TMP1]], i32 %[[TMP2]]
// OGCG: store i32 %[[ELE]], ptr %[[INIT]], align 4
+
+void foo9() {
----------------
andykaylor wrote:
Can you add a test with a scalar shift value?
`vi4 splat_shl = a << 3;`
Also, a test with unsigned values and shift-right is needed.
https://github.com/llvm/llvm-project/pull/139465
More information about the cfe-commits
mailing list