2009-08-15 23:21:19 +02:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | FileCheck %s -check-prefix=GENERIC
|
|
|
|
; RUN: llvm-as < %s | llc -mtriple=armv6-apple-darwin | FileCheck %s -check-prefix=DARWIN_V6
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm -mattr=+v7a | FileCheck %s -check-prefix=V7
|
2007-08-01 21:34:21 +02:00
|
|
|
|
2009-08-15 23:21:19 +02:00
|
|
|
; rdar://7113725
|
2007-08-01 21:34:21 +02:00
|
|
|
|
2009-08-15 23:21:19 +02:00
|
|
|
define arm_apcscc void @t(i8* nocapture %a, i8* nocapture %b) nounwind {
|
2009-08-15 23:14:01 +02:00
|
|
|
entry:
|
2009-08-15 23:21:19 +02:00
|
|
|
; GENERIC: t:
|
|
|
|
; GENERIC: ldrb r2
|
|
|
|
; GENERIC: ldrb r3
|
|
|
|
; GENERIC: ldrb r12
|
|
|
|
; GENERIC: ldrb r1
|
|
|
|
; GENERIC: strb r1
|
|
|
|
; GENERIC: strb r12
|
|
|
|
; GENERIC: strb r3
|
|
|
|
; GENERIC: strb r2
|
|
|
|
|
|
|
|
; DARWIN_V6: t:
|
|
|
|
; DARWIN_V6: ldr r1
|
|
|
|
; DARWIN_V6: str r1
|
|
|
|
|
|
|
|
; V7: t:
|
|
|
|
; V7: ldr r1
|
|
|
|
; V7: str r1
|
|
|
|
%__src1.i = bitcast i8* %b to i32* ; <i32*> [#uses=1]
|
|
|
|
%__dest2.i = bitcast i8* %a to i32* ; <i32*> [#uses=1]
|
|
|
|
%tmp.i = load i32* %__src1.i, align 1 ; <i32> [#uses=1]
|
|
|
|
store i32 %tmp.i, i32* %__dest2.i, align 1
|
|
|
|
ret void
|
2007-08-01 21:34:21 +02:00
|
|
|
}
|