aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SystemZ/atomic-load-04.ll
blob: c7a9a98a425d1c1c4c2ca350abb4666db8bc9851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; Test 64-bit atomic loads.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s

define i64 @f1(i64 *%src) {
; CHECK-LABEL: f1:
; CHECK: bcr 1{{[45]}}, %r0
; CHECK: lg %r2, 0(%r2)
; CHECK: br %r14
  %val = load atomic i64 *%src seq_cst, align 8
  ret i64 %val
}