]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Thumb/cortex-m0-unaligned-access.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / Thumb / cortex-m0-unaligned-access.ll
1 ; RUN: llc -mtriple=thumbv6m-apple-unknown-macho < %s | FileCheck --check-prefix=V6M %s
2 ; RUN: llc -mtriple=thumbv7m-apple-unknown-macho < %s | FileCheck --check-prefix=V7M %s
3
4 define i32 @split_load(i32* %p) nounwind {
5 ; V6M-LABEL: split_load
6 ; V6M: ldrh
7 ; V6M: ldrh
8 ; V7M-LABEL: split_load
9 ; V7M-NOT: ldrh
10 ; V7M: bx lr
11   %val = load i32* %p, align 2
12   ret i32 %val
13 }