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