19 lines · plain
1; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s2 3; Make sure that we can parse an atomicrmw with an operand defined later in the function.4 5; CHECK: @f6; CHECK: atomicrmw7define void @f(i1 %arg) {8 entry:9 br label %def10 11 use:12 %x = atomicrmw add ptr undef, i32 %y monotonic13 ret void14 15 def:16 %y = add i32 undef, undef17 br i1 %arg, label %use, label %use18}19