2014-04-03 03:28:13 +08:00
|
|
|
; RUN: llc -mtriple=thumbv6m-apple-unknown-macho < %s | FileCheck --check-prefix=V6M %s
|
|
|
|
; RUN: llc -mtriple=thumbv7m-apple-unknown-macho < %s | FileCheck --check-prefix=V7M %s
|
|
|
|
|
|
|
|
define i32 @split_load(i32* %p) nounwind {
|
|
|
|
; V6M-LABEL: split_load
|
|
|
|
; V6M: ldrh
|
|
|
|
; V6M: ldrh
|
|
|
|
; V7M-LABEL: split_load
|
|
|
|
; V7M-NOT: ldrh
|
|
|
|
; V7M: bx lr
|
2015-02-28 05:17:42 +08:00
|
|
|
%val = load i32, i32* %p, align 2
|
2014-04-03 03:28:13 +08:00
|
|
|
ret i32 %val
|
|
|
|
}
|