aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/M68k/Atomics/fence.ll
blob: 23318ac302da9dfc6b7c94d70659c64ce3f415ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc -mtriple=m68k-linux-gnu < %s | FileCheck %s

; M68k's libgcc does NOT have __sync_synchronize so we shouldn't
; lower to that.

define void @atomic_fence() {
; CHECK-LABEL: atomic_fence:
; CHECK:         .cfi_startproc
; CHECK-NEXT:  ; %bb.0: ; %entry
; CHECK-NEXT:    ;APP
; CHECK-NEXT:    ;NO_APP
; CHECK-NEXT:    ;APP
; CHECK-NEXT:    ;NO_APP
; CHECK-NEXT:    ;APP
; CHECK-NEXT:    ;NO_APP
; CHECK-NEXT:    ;APP
; CHECK-NEXT:    ;NO_APP
; CHECK-NEXT:    rts
entry:
  fence acquire
  fence release
  fence acq_rel
  fence seq_cst
  ret void
}