
Similar to other targets (AMDGPU, Mips, PowerPC, RISCV, X86, ...) `ninja check-clang-codegen-aarch64` can be used to test this subfolder. Pull Request: https://github.com/llvm/llvm-project/pull/115818
11 lines
296 B
C
11 lines
296 B
C
// RUN: %clang_cc1 -triple arm64-windows-msvc -emit-llvm -o - %s | FileCheck %s
|
|
|
|
#include <stdarg.h>
|
|
|
|
int simple_int(va_list ap) {
|
|
// CHECK-LABEL: define dso_local i32 @simple_int
|
|
return va_arg(ap, int);
|
|
// CHECK: [[RESULT:%[a-z_0-9]+]] = load i32, ptr %argp.cur
|
|
// CHECK: ret i32 [[RESULT]]
|
|
}
|