llvm.org GIT mirror llvm / 2edda52 test / CodeGen / ARM / noopt-dmb-v7.ll
2edda52

Tree @2edda52 (Download .tar.gz)

noopt-dmb-v7.ll @2edda52raw · history · blame

; Ensure that adjacent duplicated barriers are not removed at -O0.
; RUN: llc -O0 < %s -mtriple=armv7 -mattr=+db | FileCheck %s

define i32 @t1() {
entry:
  fence seq_cst
  fence seq_cst
  fence seq_cst
  ret i32 0
}

; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: dmb ish
; CHECK-NEXT: dmb ish
; CHECK-NEXT: dmb ish