forked from OSchip/llvm-project
add tests to show broken current behavior of minsize attribute
llvm-svn: 243451
This commit is contained in:
parent
41df7d3d10
commit
94a7433cde
|
@ -59,6 +59,73 @@ entry:
|
|||
; DARWIN: movq
|
||||
}
|
||||
|
||||
; FIXME: Both Linux and Darwin should lower to a memcpy call; minsize is on.
|
||||
define void @test3_minsize(i8* nocapture %A, i8* nocapture %B) nounwind minsize noredzone {
|
||||
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %A, i8* %B, i64 64, i32 1, i1 false)
|
||||
ret void
|
||||
; LINUX-LABEL: test3_minsize:
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
; LINUX: movq
|
||||
|
||||
; DARWIN-LABEL: test3_minsize:
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
}
|
||||
|
||||
; FIXME: Darwin should lower to a memcpy call; minsize is on.
|
||||
define void @test3_minsize_optsize(i8* nocapture %A, i8* nocapture %B) nounwind optsize minsize noredzone {
|
||||
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %A, i8* %B, i64 64, i32 1, i1 false)
|
||||
ret void
|
||||
; LINUX-LABEL: test3_minsize_optsize:
|
||||
; LINUX: memcpy
|
||||
|
||||
; DARWIN-LABEL: test3_minsize_optsize:
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
; DARWIN: movq
|
||||
}
|
||||
|
||||
; Large constant memcpy's should be inlined when not optimizing for size.
|
||||
define void @test4(i8* nocapture %A, i8* nocapture %B) nounwind noredzone {
|
||||
entry:
|
||||
|
|
Loading…
Reference in New Issue