xref: /llvm-project/llvm/test/CodeGen/X86/memset-3.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=i386-apple-darwin < %s | FileCheck %s --implicit-check-not memset
3; PR6767
4
5define void @t() nounwind ssp {
6; CHECK-LABEL: t:
7; CHECK:       ## %bb.0: ## %entry
8; CHECK-NEXT:    subl $512, %esp ## imm = 0x200
9; CHECK-NEXT:    ud2
10entry:
11  %buf = alloca [512 x i8], align 1
12  call void @llvm.memset.p0.i32(ptr %buf, i8 undef, i32 512, i1 false)
13  unreachable
14}
15
16declare void @llvm.memset.p0.i32(ptr nocapture, i8, i32, i1) nounwind
17