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