[llvm] [AMDGPU] Guard media instruction patterns with target feature (PR #217995)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 11:53:37 PDT 2026


================
@@ -0,0 +1,40 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -global-isel=0 -mtriple=amdgpu9.00 < %s | FileCheck -check-prefix=GFX9 %s
+; RUN: llc -global-isel=1 -mtriple=amdgpu9.00 < %s | FileCheck -check-prefix=GFX9 %s
+; RUN: llc -global-isel=0 -mtriple=amdgpu12.5 < %s | FileCheck -check-prefix=GFX12-5 %s
+; RUN: llc -global-isel=1 -mtriple=amdgpu12.5 < %s | FileCheck -check-prefix=GFX12-5 %s
+
+define i32 @usad(i32 %a, i32 %b, i32 %c) {
----------------
shiltian wrote:

Yup, how does it look now?

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


More information about the llvm-commits mailing list