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