Home | History | Annotate | Download | only in CodeGen
      1 // RUN:  %clang_cc1 -triple arm64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck %s
      2 
      3 #include <stdarg.h>
      4 
      5 // A single member HFA must be aligned just like a non-HFA register argument.
      6 double callee(int a, ...) {
      7 // CHECK: = add i64 %{{.*}}, 8
      8   va_list vl;
      9   va_start(vl, a);
     10   double result = va_arg(vl, struct { double a; }).a;
     11   va_end(vl);
     12   return result;
     13 }
     14