Sign in
llvm
/
llvm-project
/
461274b81d8641eab64d494accddc81d7db8a09e
/
.
/
llvm
/
test
/
CodeGen
/
SystemZ
/
atomic-load-04.ll
blob: 9ed1c2b1a597cbcf3a032044ec943c5aaed6e231 [
file
] [
log
] [
blame
]
; Test 64-bit atomic loads.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
define
i64
@f1
(
ptr
%src
)
{
; CHECK-LABEL: f1:
; CHECK: lg %r2, 0(%r2)
; CHECK: br %r14
%val
=
load
atomic
i64
,
ptr
%src
seq_cst
,
align
8
ret
i64
%val
}