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