diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-31 22:14:03 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-31 22:14:03 +0000 |
| commit | 0888bcf542411eb84d198ac549cfe14cc1a64a79 (patch) | |
| tree | 9d3b6588ce5f029ab48538537dad3797c1830131 /llvm/test/CodeGen/ARM/memcpy-inline.ll | |
| parent | 6ffe738f24989a503e645cd7616fb41691626865 (diff) | |
| download | bcm5719-llvm-0888bcf542411eb84d198ac549cfe14cc1a64a79.tar.gz bcm5719-llvm-0888bcf542411eb84d198ac549cfe14cc1a64a79.zip | |
Fix ARM tests to be register allocator independent.
llvm-svn: 128680
Diffstat (limited to 'llvm/test/CodeGen/ARM/memcpy-inline.ll')
| -rw-r--r-- | llvm/test/CodeGen/ARM/memcpy-inline.ll | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/ARM/memcpy-inline.ll b/llvm/test/CodeGen/ARM/memcpy-inline.ll index ed20c32dc0d..e8a2a3b7d5b 100644 --- a/llvm/test/CodeGen/ARM/memcpy-inline.ll +++ b/llvm/test/CodeGen/ARM/memcpy-inline.ll @@ -1,9 +1,13 @@ -; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldmia -; RUN: llc < %s -mtriple=arm-apple-darwin | grep stmia -; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldrb -; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldrh +; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=linearscan -disable-post-ra | FileCheck %s +; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=basic -disable-post-ra | FileCheck %s - %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 } +; The ARM magic hinting works best with linear scan. +; CHECK: ldmia +; CHECK: stmia +; CHECK: ldrh +; CHECK: ldrb + +%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 } @src = external global %struct.x @dst = external global %struct.x |

