mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
15 lines
434 B
C
15 lines
434 B
C
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s
|
|
|
|
struct Bar {
|
|
float f1;
|
|
float f2;
|
|
unsigned u;
|
|
};
|
|
|
|
struct Bar foo(__builtin_va_list ap) {
|
|
return __builtin_va_arg(ap, struct Bar);
|
|
// CHECK: [[FPOP:%.*]] = getelementptr inbounds %struct.__va_list_tag, ptr {{.*}}, i32 0, i32 1
|
|
// CHECK: [[FPO:%.*]] = load i32, ptr [[FPOP]]
|
|
// CHECK: [[FPVEC:%.*]] = getelementptr i8, ptr {{.*}}, i32 [[FPO]]
|
|
}
|