Jakob Stoklund Olesen | ca6fd00 | 2011-03-31 22:14:03 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=linearscan -disable-post-ra | FileCheck %s |
| 2 | ; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=basic -disable-post-ra | FileCheck %s |
Evan Cheng | 4102eb5 | 2007-10-22 22:11:27 +0000 | [diff] [blame] | 3 | |
Jakob Stoklund Olesen | ca6fd00 | 2011-03-31 22:14:03 +0000 | [diff] [blame^] | 4 | ; The ARM magic hinting works best with linear scan. |
| 5 | ; CHECK: ldmia |
| 6 | ; CHECK: stmia |
| 7 | ; CHECK: ldrh |
| 8 | ; CHECK: ldrb |
| 9 | |
| 10 | %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 } |
Evan Cheng | 4102eb5 | 2007-10-22 22:11:27 +0000 | [diff] [blame] | 11 | @src = external global %struct.x |
| 12 | @dst = external global %struct.x |
| 13 | |
| 14 | define i32 @t() { |
| 15 | entry: |
| 16 | call void @llvm.memcpy.i32( i8* getelementptr (%struct.x* @dst, i32 0, i32 0), i8* getelementptr (%struct.x* @src, i32 0, i32 0), i32 11, i32 8 ) |
| 17 | ret i32 0 |
| 18 | } |
| 19 | |
| 20 | declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) |