Relax dwarf line fragments. This fixes a crash in the included testcase.
[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 -march=thumb -mattr=+v6m       | FileCheck %s -check-prefix=V6M
3
4 declare void @llvm.memory.barrier(i1 , i1 , i1 , i1 , i1)
5
6 define void @t1() {
7 ; V6: t1:
8 ; V6: blx {{_*}}sync_synchronize
9
10 ; V6M: t1:
11 ; V6M: dmb st
12   call void @llvm.memory.barrier(i1 false, i1 false, i1 false, i1 true, i1 true)
13   ret void
14 }
15
16 define void @t2() {
17 ; V6: t2:
18 ; V6: blx {{_*}}sync_synchronize
19
20 ; V6M: t2:
21 ; V6M: dmb ish
22   call void @llvm.memory.barrier(i1 true, i1 false, i1 false, i1 true, i1 false)
23   ret void
24 }