[llvm] [AMDGPU][GlobalISel] Add regbankselect rules for G_FSHR (PR #159818)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 07:29:25 PST 2025


================
@@ -0,0 +1,37 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn-amd-amdpal -mcpu=gfx1200 < %s | FileCheck %s
+
+define amdgpu_ps i32 @uniform_fshr_i32(i32 %lhs, i32 %rhs, i32 %amt) {
----------------
petar-avramovic wrote:

```suggestion
define amdgpu_ps i32 @uniform_fshr_i32(i32 inreg %lhs, i32 inreg %rhs, i32 inreg %amt) {
```

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


More information about the llvm-commits mailing list