2017-07-18 01:31:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm64-windows-msvc -emit-llvm -o - %s | FileCheck %s
|
2017-07-14 01:59:14 +08:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
int simple_int(va_list ap) {
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK-LABEL: define dso_local i32 @simple_int
|
2017-07-14 01:59:14 +08:00
|
|
|
return va_arg(ap, int);
|
|
|
|
// CHECK: [[ADDR:%[a-z_0-9]+]] = bitcast i8* %argp.cur to i32*
|
|
|
|
// CHECK: [[RESULT:%[a-z_0-9]+]] = load i32, i32* [[ADDR]]
|
|
|
|
// CHECK: ret i32 [[RESULT]]
|
|
|
|
}
|