brintos

brintos / llvm-project-archived public Read only

0
0
Text · 753 B · 34c6c63 Raw
21 lines · plain
1; RUN: llc -o - %s | FileCheck %s2; RUN: llc -global-isel -o - %s | FileCheck %s3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"4target triple = "arm64-apple-macosx15.0.0"5 6define ptr @test()  {7; CHECK-LABEL: test:8; CHECK: bl _bzero9  %1 = tail call ptr @fn(i32 noundef 1) #310  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1000) %1, i8 noundef 0, i64 noundef 1000, i1 noundef false) #311  ret ptr %112}13 14declare ptr @fn(i32 noundef)15 16; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)17declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #218 19attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }20attributes #3 = { nounwind optsize }21