Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[llvm/avr.git] / test / CodeGen / ARM / memcpy-inline.ll
blob4bf0b4f6f3b19803ef2fc9a65d202125cc0437e8
1 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldmia
2 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep stmia
3 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb
4 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrh
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
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
16 declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)