Debian Codegraph @

llvm/test/Instrumentation/MemorySanitizer/LoongArch/vararg.ll

raw
1 ; RUN: opt < %s -msan-check-access-address=0 -S -passes=msan 2>&1
2 ; Test that code using va_start can be compiled on LoongArch.
3
4 target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n64-S128"
5 target triple = "loongarch64-unknown-linux-gnu"
6
7 define void @VaStart(ptr %s, ...) {
8 entry:
9 %vl = alloca ptr, align 4
10 call void @llvm.va_start(ptr %vl)
11 ret void
12 }
13
14 declare void @llvm.va_start(ptr)