bolt/deps/llvm-18.1.8/llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-invalid-any-off-on.ll
2025-02-14 19:21:04 +01:00

24 lines
501 B
LLVM

; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s 2>&1 | FileCheck --check-prefixes=ERR %s
; ERR: error: xnack setting of 'func2' function does not match module xnack setting
define void @func0() {
entry:
ret void
}
define void @func1() #0 {
entry:
ret void
}
define void @func2() #1 {
entry:
ret void
}
attributes #0 = { "target-features"="-xnack" }
attributes #1 = { "target-features"="+xnack" }
!llvm.module.flags = !{!0}
!0 = !{i32 1, !"amdgpu_code_object_version", i32 400}