xref: /llvm-project/llvm/test/CodeGen/M68k/Atomics/fence.ll (revision ed372d194f938b750855ad1297517d26f1102250)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2; RUN: llc -mtriple=m68k-linux-gnu < %s | FileCheck %s
3
4; M68k's libgcc does NOT have __sync_synchronize so we shouldn't
5; lower to that.
6
7define void @atomic_fence() {
8; CHECK-LABEL: atomic_fence:
9; CHECK:         .cfi_startproc
10; CHECK-NEXT:  ; %bb.0: ; %entry
11; CHECK-NEXT:    ;APP
12; CHECK-NEXT:    ;NO_APP
13; CHECK-NEXT:    ;APP
14; CHECK-NEXT:    ;NO_APP
15; CHECK-NEXT:    ;APP
16; CHECK-NEXT:    ;NO_APP
17; CHECK-NEXT:    ;APP
18; CHECK-NEXT:    ;NO_APP
19; CHECK-NEXT:    rts
20entry:
21  fence acquire
22  fence release
23  fence acq_rel
24  fence seq_cst
25  ret void
26}
27
28