42 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc -mtriple=m68k-linux-gnu --code-model=large < %s | FileCheck %s3; RUN: llc -mtriple=m68k-linux-gnu --code-model=large --relocation-model=pic < %s | FileCheck %s --check-prefix=PIC4 5; M68k's libgcc does NOT have __sync_synchronize so we shouldn't6; lower to that.7 8define void @atomic_fence() {9; CHECK-LABEL: atomic_fence:10; CHECK: .cfi_startproc11; CHECK-NEXT: ; %bb.0: ; %entry12; CHECK-NEXT: ;APP13; CHECK-NEXT: ;NO_APP14; CHECK-NEXT: ;APP15; CHECK-NEXT: ;NO_APP16; CHECK-NEXT: ;APP17; CHECK-NEXT: ;NO_APP18; CHECK-NEXT: ;APP19; CHECK-NEXT: ;NO_APP20; CHECK-NEXT: rts21;22; PIC-LABEL: atomic_fence:23; PIC: .cfi_startproc24; PIC-NEXT: ; %bb.0: ; %entry25; PIC-NEXT: ;APP26; PIC-NEXT: ;NO_APP27; PIC-NEXT: ;APP28; PIC-NEXT: ;NO_APP29; PIC-NEXT: ;APP30; PIC-NEXT: ;NO_APP31; PIC-NEXT: ;APP32; PIC-NEXT: ;NO_APP33; PIC-NEXT: rts34entry:35 fence acquire36 fence release37 fence acq_rel38 fence seq_cst39 ret void40}41 42