Evan Cheng | 4102eb5 | 2007-10-22 22:11:27 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldmia |
| 2 | ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb |
| 3 | ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrh |
| 4 | |
| 5 | %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 } |
| 6 | @src = external global %struct.x |
| 7 | @dst = external global %struct.x |
| 8 | |
| 9 | define i32 @t() { |
| 10 | entry: |
| 11 | 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 ) |
| 12 | ret i32 0 |
| 13 | } |
| 14 | |
| 15 | declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) |