Saleem Abdulrasool | 905b6d19 | 2014-04-03 23:47:24 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=thumbv6-apple-darwin %s -o - | FileCheck %s -check-prefix=V6 |
| 2 | ; RUN: llc -mtriple=thumbv7-apple-darwin -mattr=-db %s -o - | FileCheck %s -check-prefix=V6 |
| 3 | ; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-m0 %s -o - | FileCheck %s -check-prefix=V6M |
Evan Cheng | 6e809de | 2010-08-11 06:22:01 +0000 | [diff] [blame] | 4 | |
Evan Cheng | 6e809de | 2010-08-11 06:22:01 +0000 | [diff] [blame] | 5 | define void @t1() { |
Stephen Lin | d24ab20 | 2013-07-14 06:24:09 +0000 | [diff] [blame] | 6 | ; V6-LABEL: t1: |
Tim Northover | b5ece52 | 2016-05-10 19:17:47 +0000 | [diff] [blame] | 7 | ; V6: bl {{_*}}sync_synchronize |
Evan Cheng | 49e02fc | 2010-08-11 06:30:38 +0000 | [diff] [blame] | 8 | |
Stephen Lin | d24ab20 | 2013-07-14 06:24:09 +0000 | [diff] [blame] | 9 | ; V6M-LABEL: t1: |
Tim Northover | f576988 | 2013-08-28 14:39:19 +0000 | [diff] [blame] | 10 | ; V6M: dmb sy |
Eli Friedman | ab7b99a | 2011-09-26 21:36:10 +0000 | [diff] [blame] | 11 | fence seq_cst |
Evan Cheng | 6e809de | 2010-08-11 06:22:01 +0000 | [diff] [blame] | 12 | ret void |
| 13 | } |