summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/memset-2.ll
blob: 692965f6f7e02cb9bf69e0035edaf46f3fe5f440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -mtriple=i386-apple-darwin < %s | FileCheck %s

declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind

define fastcc void @t1() nounwind {
entry:
; CHECK: t1:
; CHECK: calll _memset
  call void @llvm.memset.i32( i8* null, i8 0, i32 188, i32 1 ) nounwind
  unreachable
}

define fastcc void @t2(i8 signext %c) nounwind {
entry:
; CHECK: t2:
; CHECK: calll _memset
  call void @llvm.memset.i32( i8* undef, i8 %c, i32 76, i32 1 ) nounwind
  unreachable
}