1 ; RUN: llc < %s -march=arm -pre-RA-sched=source | FileCheck %s -check-prefix=EXPANDED
2 ; RUN: llc < %s -mtriple=armv6-apple-darwin -mcpu=cortex-a8 -arm-strict-align -pre-RA-sched=source | FileCheck %s -check-prefix=EXPANDED
3 ; RUN: llc < %s -mtriple=armv6-apple-darwin -mcpu=cortex-a8 | FileCheck %s -check-prefix=UNALIGNED
8 define void @t(i8* nocapture %a, i8* nocapture %b) nounwind {
11 ; EXPANDED: ldrb [[R2:r[0-9]+]]
12 ; EXPANDED: ldrb [[R3:r[0-9]+]]
13 ; EXPANDED: ldrb [[R12:r[0-9]+]]
14 ; EXPANDED: ldrb [[R1:r[0-9]+]]
15 ; EXPANDED: strb [[R1]]
16 ; EXPANDED: strb [[R12]]
17 ; EXPANDED: strb [[R3]]
18 ; EXPANDED: strb [[R2]]
24 %__src1.i = bitcast i8* %b to i32* ; <i32*> [#uses=1]
25 %__dest2.i = bitcast i8* %a to i32* ; <i32*> [#uses=1]
26 %tmp.i = load i32* %__src1.i, align 1 ; <i32> [#uses=1]
27 store i32 %tmp.i, i32* %__dest2.i, align 1
31 define void @hword(double* %a, double* %b) nounwind {
42 %tmp = load double* %a, align 2
43 store double %tmp, double* %b, align 2
47 define void @byte(double* %a, double* %b) nounwind {
58 %tmp = load double* %a, align 1
59 store double %tmp, double* %b, align 1