2014-04-04 07:47:24 +08:00
|
|
|
; RUN: llc -mtriple=thumbv6-apple-darwin %s -o - | FileCheck %s -check-prefix=V6
|
|
|
|
; RUN: llc -mtriple=thumbv7-apple-darwin -mattr=-db %s -o - | FileCheck %s -check-prefix=V6
|
|
|
|
; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-m0 %s -o - | FileCheck %s -check-prefix=V6M
|
2010-08-11 14:22:01 +08:00
|
|
|
|
|
|
|
define void @t1() {
|
2013-07-14 14:24:09 +08:00
|
|
|
; V6-LABEL: t1:
|
2016-05-11 03:17:47 +08:00
|
|
|
; V6: bl {{_*}}sync_synchronize
|
2010-08-11 14:30:38 +08:00
|
|
|
|
2013-07-14 14:24:09 +08:00
|
|
|
; V6M-LABEL: t1:
|
2013-08-28 22:39:19 +08:00
|
|
|
; V6M: dmb sy
|
2011-09-27 05:36:10 +08:00
|
|
|
fence seq_cst
|
2010-08-11 14:22:01 +08:00
|
|
|
ret void
|
|
|
|
}
|