2010-08-11 17:25:51 +00:00
|
|
|
; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s -check-prefix=V6
|
2010-11-09 22:50:44 +00:00
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=-db | FileCheck %s -check-prefix=V6
|
2011-07-07 03:55:05 +00:00
|
|
|
; RUN: llc < %s -march=thumb -mcpu=cortex-m0 | FileCheck %s -check-prefix=V6M
|
2010-08-11 06:22:01 +00:00
|
|
|
|
|
|
|
define void @t1() {
|
2013-07-14 06:24:09 +00:00
|
|
|
; V6-LABEL: t1:
|
2010-08-11 17:25:51 +00:00
|
|
|
; V6: blx {{_*}}sync_synchronize
|
2010-08-11 06:30:38 +00:00
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; V6M-LABEL: t1:
|
2013-08-28 14:39:19 +00:00
|
|
|
; V6M: dmb sy
|
2011-09-26 21:36:10 +00:00
|
|
|
fence seq_cst
|
2010-08-11 06:22:01 +00:00
|
|
|
ret void
|
|
|
|
}
|