2010-04-02 19:36:14 +00:00
|
|
|
; RUN: llc -mtriple=i386-apple-darwin < %s | FileCheck %s
|
2008-08-21 21:00:15 +00:00
|
|
|
|
|
|
|
declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind
|
|
|
|
|
2010-04-01 18:19:11 +00:00
|
|
|
define fastcc void @t1() nounwind {
|
2008-08-21 21:00:15 +00:00
|
|
|
entry:
|
2010-04-01 18:19:11 +00:00
|
|
|
; CHECK: t1:
|
2010-04-02 19:36:14 +00:00
|
|
|
; CHECK: call _memset
|
2010-04-01 06:04:33 +00:00
|
|
|
call void @llvm.memset.i32( i8* null, i8 0, i32 188, i32 1 ) nounwind
|
|
|
|
unreachable
|
2008-08-21 21:00:15 +00:00
|
|
|
}
|
2010-04-01 18:19:11 +00:00
|
|
|
|
|
|
|
define fastcc void @t2(i8 signext %c) nounwind {
|
|
|
|
entry:
|
|
|
|
; CHECK: t2:
|
2010-04-02 19:36:14 +00:00
|
|
|
; CHECK: call _memset
|
2010-04-01 18:19:11 +00:00
|
|
|
call void @llvm.memset.i32( i8* undef, i8 %c, i32 76, i32 1 ) nounwind
|
|
|
|
unreachable
|
|
|
|
}
|