Revert "Rewrite a test to count emitted instructions without using -stats"
[oota-llvm.git] / test / CodeGen / Thumb / barrier.ll
1 ; RUN: llc < %s -mtriple=thumbv6-apple-darwin  | FileCheck %s -check-prefix=V6
2 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=-db | FileCheck %s -check-prefix=V6
3 ; RUN: llc < %s -march=thumb -mcpu=cortex-m0   | FileCheck %s -check-prefix=V6M
4
5 define void @t1() {
6 ; V6: t1:
7 ; V6: blx {{_*}}sync_synchronize
8
9 ; V6M: t1:
10 ; V6M: dmb ish
11   fence seq_cst
12   ret void
13 }