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(ptr nocapture %a, ptr nocapture %b) nounwind {
16 ; EXPANDED-DAG: ldrb [[R2:r[0-9]+]]
17 ; EXPANDED-DAG: ldrb [[R3:r[0-9]+]]
18 ; EXPANDED-DAG: ldrb [[R12:r[0-9]+]]
19 ; EXPANDED-DAG: ldrb [[R1:r[0-9]+]]
20 ; EXPANDED-DAG: strb [[R1]]
21 ; EXPANDED-DAG: strb [[R12]]
22 ; EXPANDED-DAG: strb [[R3]]
23 ; EXPANDED-DAG: strb [[R2]]
29 %tmp.i = load i32, ptr %b, align 1 ; <i32> [#uses=1]
30 store i32 %tmp.i, ptr %a, align 1
34 define void @hword(ptr %a, ptr %b) nounwind {
36 ; EXPANDED-LABEL: hword:
42 ; UNALIGNED-LABEL: hword:
45 %tmp = load double, ptr %a, align 2
46 store double %tmp, ptr %b, align 2
50 define void @byte(ptr %a, ptr %b) nounwind {
52 ; EXPANDED-LABEL: byte:
58 ; UNALIGNED-LABEL: byte:
61 %tmp = load double, ptr %a, align 1
62 store double %tmp, ptr %b, align 1
66 define void @byte_word_ops(ptr %a, ptr %b) nounwind {
68 ; EXPANDED-LABEL: byte_word_ops:
72 ; UNALIGNED-LABEL: byte_word_ops:
77 %tmp = load i32, ptr %a, align 1
78 store i32 %tmp, ptr %b, align 1