1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/ARM/noopt-dmb-v7.ll

16 lines
311 B
LLVM
Raw Normal View History

; 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