diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-08-11 06:30:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-08-11 06:30:38 +0000 |
commit | c7569ed4e43a25aa52cf3b5580f1ee00d7d5db96 (patch) | |
tree | 3e02fdec983410b5e2dd089c16fa8f48b1a44db7 /test/CodeGen/Thumb | |
parent | 11db068721d44fd5f9b0c2a3a4c90f813d2eae9c (diff) | |
download | external_llvm-c7569ed4e43a25aa52cf3b5580f1ee00d7d5db96.zip external_llvm-c7569ed4e43a25aa52cf3b5580f1ee00d7d5db96.tar.gz external_llvm-c7569ed4e43a25aa52cf3b5580f1ee00d7d5db96.tar.bz2 |
Add Cortex-M0 support. It's a ARMv6m device (no ARM mode) with some 32-bit
instructions: dmb, dsb, isb, msr, and mrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb')
-rw-r--r-- | test/CodeGen/Thumb/barrier.ll | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/test/CodeGen/Thumb/barrier.ll b/test/CodeGen/Thumb/barrier.ll index 44a3f46..0081837 100644 --- a/test/CodeGen/Thumb/barrier.ll +++ b/test/CodeGen/Thumb/barrier.ll @@ -1,17 +1,24 @@ -; RUN: llc < %s -march=thumb -mattr=+v6 | FileCheck %s +; RUN: llc < %s -march=thumb -mattr=+v6 | FileCheck %s -check-prefix=V6 +; RUN: llc < %s -march=thumb -mcpu=cortex-m0 | FileCheck %s -check-prefix=M0 declare void @llvm.memory.barrier( i1 , i1 , i1 , i1 , i1 ) define void @t1() { -; CHECK: t1: -; CHECK: blx {{_*}}sync_synchronize +; V6: t1: +; V6: blx {{_*}}sync_synchronize + +; M0: t1: +; M0: dsb call void @llvm.memory.barrier( i1 false, i1 false, i1 false, i1 true, i1 true ) ret void } define void @t2() { -; CHECK: t2: -; CHECK: blx {{_*}}sync_synchronize +; V6: t2: +; V6: blx {{_*}}sync_synchronize + +; M0: t2: +; M0: dmb call void @llvm.memory.barrier( i1 false, i1 false, i1 false, i1 true, i1 false ) ret void } |