Evan Cheng | e1f0859 | 2010-08-11 17:25:51 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s -check-prefix=V6 |
Bob Wilson | 54f9256 | 2010-11-09 22:50:44 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=-db | FileCheck %s -check-prefix=V6 |
Evan Cheng | 39dfb0f | 2011-07-07 03:55:05 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=thumb -mcpu=cortex-m0 | FileCheck %s -check-prefix=V6M |
Evan Cheng | 11db068 | 2010-08-11 06:22:01 +0000 | [diff] [blame] | 4 | |
Evan Cheng | 11db068 | 2010-08-11 06:22:01 +0000 | [diff] [blame] | 5 | define void @t1() { |
Evan Cheng | c7569ed | 2010-08-11 06:30:38 +0000 | [diff] [blame] | 6 | ; V6: t1: |
Evan Cheng | e1f0859 | 2010-08-11 17:25:51 +0000 | [diff] [blame] | 7 | ; V6: blx {{_*}}sync_synchronize |
Evan Cheng | c7569ed | 2010-08-11 06:30:38 +0000 | [diff] [blame] | 8 | |
Evan Cheng | d6b4632 | 2010-08-11 06:51:54 +0000 | [diff] [blame] | 9 | ; V6M: t1: |
Bob Wilson | f74a429 | 2010-10-30 00:54:37 +0000 | [diff] [blame] | 10 | ; V6M: dmb ish |
Eli Friedman | 47d3ee5 | 2011-09-26 21:36:10 +0000 | [diff] [blame] | 11 | fence seq_cst |
Evan Cheng | 11db068 | 2010-08-11 06:22:01 +0000 | [diff] [blame] | 12 | ret void |
13 | } |