brintos

brintos / llvm-project-archived public Read only

0
0
Text · 959 B · 392cd8b Raw
28 lines · plain
1; RUN: not llc -mtriple=nvptx64 -mcpu=sm_30 -filetype=null %s 2>&1 | FileCheck %s2 3; CHECK: error: unsupported cmpxchg4; CHECK: error: unsupported cmpxchg5; CHECK: error: unsupported cmpxchg6; CHECK: error: unsupported cmpxchg7define void @bitwise_i256(ptr %0, i256 %1) {8entry:9  %2 = atomicrmw and ptr %0, i256 %1 monotonic, align 1610  %3 = atomicrmw or ptr %0, i256 %1 monotonic, align 1611  %4 = atomicrmw xor ptr %0, i256 %1 monotonic, align 1612  %5 = atomicrmw xchg ptr %0, i256 %1 monotonic, align 1613  ret void14}15 16; CHECK: error: unsupported cmpxchg17; CHECK: error: unsupported cmpxchg18; CHECK: error: unsupported cmpxchg19; CHECK: error: unsupported cmpxchg20define void @minmax_i256(ptr %0, i256 %1) {21entry:22  %2 = atomicrmw min ptr %0, i256 %1 monotonic, align 1623  %3 = atomicrmw max ptr %0, i256 %1 monotonic, align 1624  %4 = atomicrmw umin ptr %0, i256 %1 monotonic, align 1625  %5 = atomicrmw umax ptr %0, i256 %1 monotonic, align 1626  ret void27}28