[llvm] [GlobalISel] Use G_ANYEXT instead of G_ZEXT for shift amount widening (PR #223136)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 12 16:08:56 PDT 2026


================
@@ -0,0 +1,34 @@
+; RUN: llc -mtriple=aarch64 -global-isel -verify-machineinstrs %s -o - | FileCheck %s
+
+; Check that shift amount is not masked with AND for small types
+; GlobalISel should match SelectionDAG behavior
----------------
arsenm wrote:

there isn't a reference sdag run? These cases are really basic, I would hope this is covered in an existing test?

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


More information about the llvm-commits mailing list