aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-08-28 14:39:19 +0000
committerTim Northover <tnorthover@apple.com>2013-08-28 14:39:19 +0000
commit22266c1d4817fc30355a90bb264ede08482bba3a (patch)
treea45dbfb4e64a237b8382aef5f2872d7c4ed4e882 /test
parentbafb5f8d9f415340d9035ee9430f9480da9a50fb (diff)
downloadexternal_llvm-22266c1d4817fc30355a90bb264ede08482bba3a.zip
external_llvm-22266c1d4817fc30355a90bb264ede08482bba3a.tar.gz
external_llvm-22266c1d4817fc30355a90bb264ede08482bba3a.tar.bz2
ARM: Use "dmb sy" for barriers on M-class CPUs
The usual default of "dmb ish" (inner-shareable) isn't even a valid instruction on v6M or v7M (well, it does the same thing but software is strongly discouraged from using it) so we should emit a full-system barrier there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Thumb/barrier.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/Thumb/barrier.ll b/test/CodeGen/Thumb/barrier.ll
index 8fca273..1c27fa0 100644
--- a/test/CodeGen/Thumb/barrier.ll
+++ b/test/CodeGen/Thumb/barrier.ll
@@ -7,7 +7,7 @@ define void @t1() {
; V6: blx {{_*}}sync_synchronize
; V6M-LABEL: t1:
-; V6M: dmb ish
+; V6M: dmb sy
fence seq_cst
ret void
}