bolt/deps/llvm-18.1.8/llvm/test/Instrumentation/MemorySanitizer/LoongArch/vararg.ll

15 lines
393 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: opt < %s -msan-check-access-address=0 -S -passes=msan 2>&1
; Test that code using va_start can be compiled on LoongArch.
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n64-S128"
target triple = "loongarch64-unknown-linux-gnu"
define void @VaStart(ptr %s, ...) {
entry:
%vl = alloca ptr, align 4
call void @llvm.va_start(ptr %vl)
ret void
}
declare void @llvm.va_start(ptr)