1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Assembler/atomicrmw.ll
Arthur Eubanks 9085f7d6c9 [OpaquePtr] Make atomicrmw work with opaque pointers
FullTy is only necessary when we need to figure out what type an
instruction works with given a pointer's pointee type. However, we just
end up using the value operand's type, so FullTy isn't necessary.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D102788
2021-05-25 20:16:21 -07:00

19 lines
371 B
LLVM

; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s
; Make sure that we can parse an atomicrmw with an operand defined later in the function.
; CHECK: @f
; CHECK: atomicrmw
define void @f() {
entry:
br label %def
use:
%x = atomicrmw add i32* undef, i32 %y monotonic
ret void
def:
%y = add i32 undef, undef
br i1 undef, label %use, label %use
}