regparm.c revision 264ba48dc98f3f843935a485d5b086f7e0fdc4f1
1// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s 2 3#define FASTCALL __attribute__((regparm(2))) 4 5typedef struct { 6 int aaa; 7 double bbbb; 8 int ccc[200]; 9} foo; 10 11static void FASTCALL 12reduced(char b, double c, foo* d, double e, int f) { 13} 14 15int 16main(void) { 17 // CHECK: call void @reduced(i8 signext inreg 0, double 0.000000e+00, %struct.anon* inreg null, double 0.000000e+00, i32 0) 18 reduced(0, 0.0, 0, 0.0, 0); 19} 20