2011-01-21 05:51:33 +00:00
|
|
|
; RUN: llc < %s -march=arm -pre-RA-sched=source | FileCheck %s -check-prefix=GENERIC
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -mtriple=armv6-apple-darwin | FileCheck %s -check-prefix=DARWIN_V6
|
2010-09-28 04:09:35 +00:00
|
|
|
; RUN: llc < %s -mtriple=armv6-apple-darwin -arm-strict-align | FileCheck %s -check-prefix=GENERIC
|
2010-01-30 14:08:12 +00:00
|
|
|
; RUN: llc < %s -mtriple=armv6-linux | FileCheck %s -check-prefix=GENERIC
|
2007-08-01 19:34:21 +00:00
|
|
|
|
2009-08-15 21:21:19 +00:00
|
|
|
; rdar://7113725
|
2007-08-01 19:34:21 +00:00
|
|
|
|
2010-06-17 15:18:27 +00:00
|
|
|
define void @t(i8* nocapture %a, i8* nocapture %b) nounwind {
|
2009-08-15 21:14:01 +00:00
|
|
|
entry:
|
2009-08-15 21:21:19 +00:00
|
|
|
; GENERIC: t:
|
2011-04-30 01:37:52 +00:00
|
|
|
; GENERIC: ldrb [[R2:r[0-9]+]]
|
|
|
|
; GENERIC: ldrb [[R3:r[0-9]+]]
|
|
|
|
; GENERIC: ldrb [[R12:r[0-9]+]]
|
|
|
|
; GENERIC: ldrb [[R1:r[0-9]+]]
|
|
|
|
; GENERIC: strb [[R1]]
|
|
|
|
; GENERIC: strb [[R12]]
|
|
|
|
; GENERIC: strb [[R3]]
|
|
|
|
; GENERIC: strb [[R2]]
|
2009-08-15 21:21:19 +00:00
|
|
|
|
|
|
|
; DARWIN_V6: t:
|
|
|
|
; DARWIN_V6: ldr r1
|
|
|
|
; DARWIN_V6: 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 19:34:21 +00:00
|
|
|
}
|