1 ; RUN: llc -mtriple=arm-eabi -pre-RA-sched=source -mattr=+strict-align %s -o - \
2 ; RUN: | FileCheck %s -check-prefix=EXPANDED
4 ; RUN: llc -mtriple=armv6-apple-darwin -mcpu=cortex-a8 -mattr=-neon,+strict-align -pre-RA-sched=source %s -o - \
5 ; RUN: | FileCheck %s -check-prefix=EXPANDED
7 ; RUN: llc -mtriple=armv6-apple-darwin -mcpu=cortex-a8 %s -o - \
8 ; RUN: | FileCheck %s -check-prefix=UNALIGNED
13 define void @t(i8* nocapture %a, i8* nocapture %b) nounwind {
16 ; EXPANDED: ldrb [[R2:r[0-9]+]]
17 ; EXPANDED: ldrb [[R3:r[0-9]+]]
18 ; EXPANDED: ldrb [[R12:r[0-9]+]]
19 ; EXPANDED: ldrb [[R1:r[0-9]+]]
20 ; EXPANDED: strb [[R1]]
21 ; EXPANDED: strb [[R12]]
22 ; EXPANDED: strb [[R3]]
23 ; EXPANDED: strb [[R2]]
29 %__src1.i = bitcast i8* %b to i32* ; <i32*> [#uses=1]
30 %__dest2.i = bitcast i8* %a to i32* ; <i32*> [#uses=1]
31 %tmp.i = load i32, i32* %__src1.i, align 1 ; <i32> [#uses=1]
32 store i32 %tmp.i, i32* %__dest2.i, align 1
36 define void @hword(double* %a, double* %b) nounwind {
38 ; EXPANDED-LABEL: hword:
44 ; UNALIGNED-LABEL: hword:
47 %tmp = load double, double* %a, align 2
48 store double %tmp, double* %b, align 2
52 define void @byte(double* %a, double* %b) nounwind {
54 ; EXPANDED-LABEL: byte:
60 ; UNALIGNED-LABEL: byte:
63 %tmp = load double, double* %a, align 1
64 store double %tmp, double* %b, align 1
68 define void @byte_word_ops(i32* %a, i32* %b) nounwind {
70 ; EXPANDED-LABEL: byte_word_ops:
74 ; UNALIGNED-LABEL: byte_word_ops:
79 %tmp = load i32, i32* %a, align 1
80 store i32 %tmp, i32* %b, align 1