aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/regparm.c
blob: 43b1da61ee9004b48418bf751f4ae82d88abc593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s

#define FASTCALL __attribute__((regparm(2)))

typedef struct {
  int aaa;
  double bbbb;
  int ccc[200];
} foo;

static void FASTCALL
reduced(char b, double c, foo* d, double e, int f) {
}

int
main(void) {
  // CHECK: call void @reduced(i8 signext inreg 0, double 0.000000e+00, %struct.anon* inreg null, double 0.000000e+00, i32 0)
  reduced(0, 0.0, 0, 0.0, 0);
}