brintos

brintos / llvm-project-archived public Read only

0
0
Text · 501 B · 0f54d78 Raw
25 lines · plain
1; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s 2>&1 | FileCheck --check-prefixes=ERR %s2 3; ERR: error: xnack setting of 'func2' function does not match module xnack setting4 5define void @func0() {6entry:7  ret void8}9 10define void @func1() #0 {11entry:12  ret void13}14 15define void @func2() #1 {16entry:17  ret void18}19 20attributes #0 = { "target-features"="-xnack" }21attributes #1 = { "target-features"="+xnack" }22 23!llvm.module.flags = !{!0}24!0 = !{i32 1, !"amdhsa_code_object_version", i32 400}25