65 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=i386-apple-darwin9 -mcpu=yonah < %s | FileCheck %s3 4define fastcc void @t1(ptr nocapture %s) nounwind {5; CHECK-LABEL: t1:6; CHECK: ## %bb.0: ## %entry7; CHECK-NEXT: subl $16, %esp8; CHECK-NEXT: pushl $1889; CHECK-NEXT: pushl $010; CHECK-NEXT: pushl %ecx11; CHECK-NEXT: calll _memset12; CHECK-NEXT: addl $16, %esp13; CHECK-NEXT: ud214entry:15 call void @llvm.memset.p0.i32(ptr %s, i8 0, i32 188, i1 false)16 unreachable17}18 19define fastcc void @t2(ptr nocapture %s, i8 signext %c) nounwind {20; CHECK-LABEL: t2:21; CHECK: ## %bb.0: ## %entry22; CHECK-NEXT: subl $16, %esp23; CHECK-NEXT: pushl $7624; CHECK-NEXT: pushl %edx25; CHECK-NEXT: pushl %ecx26; CHECK-NEXT: calll _memset27; CHECK-NEXT: addl $16, %esp28; CHECK-NEXT: ud229entry:30 call void @llvm.memset.p0.i32(ptr %s, i8 %c, i32 76, i1 false)31 unreachable32}33 34declare void @llvm.memset.p0.i32(ptr nocapture, i8, i32, i1) nounwind35 36define void @t3(ptr nocapture %s, i8 %a) nounwind {37; CHECK-LABEL: t3:38; CHECK: ## %bb.0: ## %entry39; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax40; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %ecx41; CHECK-NEXT: imull $16843009, %ecx, %ecx ## imm = 0x101010142; CHECK-NEXT: movl %ecx, 4(%eax)43; CHECK-NEXT: movl %ecx, (%eax)44; CHECK-NEXT: retl45entry:46 tail call void @llvm.memset.p0.i32(ptr %s, i8 %a, i32 8, i1 false)47 ret void48}49 50define void @t4(ptr nocapture %s, i8 %a) nounwind {51; CHECK-LABEL: t4:52; CHECK: ## %bb.0: ## %entry53; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax54; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %ecx55; CHECK-NEXT: imull $16843009, %ecx, %ecx ## imm = 0x101010156; CHECK-NEXT: movl %ecx, 11(%eax)57; CHECK-NEXT: movl %ecx, 8(%eax)58; CHECK-NEXT: movl %ecx, 4(%eax)59; CHECK-NEXT: movl %ecx, (%eax)60; CHECK-NEXT: retl61entry:62 tail call void @llvm.memset.p0.i32(ptr %s, i8 %a, i32 15, i1 false)63 ret void64}65