12 lines · plain
1; RUN: not llc -mcpu=sm_100a -mtriple=nvptx64 -mattr=+ptx86 %s -o /dev/null 2>&1 | FileCheck %s2 3; Test that we get a clear error message when using an unsupported syncscope.4 5; CHECK: NVPTX backend does not support syncscope "agent"6; CHECK: Supported syncscopes are: singlethread, <empty string>, block, cluster, device7define i32 @cmpxchg_unsupported_syncscope_agent(ptr %addr, i32 %cmp, i32 %new) {8 %result = cmpxchg ptr %addr, i32 %cmp, i32 %new syncscope("agent") monotonic monotonic9 %value = extractvalue { i32, i1 } %result, 010 ret i32 %value11}12