[llvm] [AMDGPU] Guard more intrinsics with target features (PR #203956)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 18:42:00 PDT 2026


================
@@ -2,12 +2,12 @@
 ; RUN: not llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx705 -filetype=null < %s 2>&1 | FileCheck -check-prefix=ERR %s
 ; RUN: not llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx810 -filetype=null < %s 2>&1 | FileCheck -check-prefix=ERR %s
 
-; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx602 -filetype=null < %s 2>&1 | FileCheck -check-prefix=ERR %s
-; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx705 -filetype=null < %s 2>&1 | FileCheck -check-prefix=ERR %s
-; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx810 -filetype=null < %s 2>&1 | FileCheck -check-prefix=ERR %s
+; RUN: not llc -global-isel=1 -global-isel-abort=0 -mtriple=amdgcn -mcpu=gfx602 -filetype=null < %s 2>&1 | FileCheck -check-prefix=ERR %s
----------------
shiltian wrote:

`reportTranslationError` is called when `translate -> translateCall -> translateIntrinsic` returns `false`. By default, it aborts. It's not intended to skip the fallback in this case.

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


More information about the llvm-commits mailing list