28 lines · c
1// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s2 3#define FASTCALL __attribute__((regparm(2)))4 5typedef struct {6 int aaa;7 double bbbb;8 int ccc[200];9} foo;10 11typedef void (*FType)(int, int) __attribute ((regparm (3), stdcall));12FType bar;13 14extern void FASTCALL reduced(char b, double c, foo* d, double e, int f);15 16// PR702517void FASTCALL f1(int i, int j, int k);18// CHECK-LABEL: define{{.*}} void @f1(i32 inreg noundef %i, i32 inreg noundef %j, i32 noundef %k)19void f1(int i, int j, int k) { }20 21int22main(void) {23 // CHECK: call void @reduced(i8 inreg noundef signext 0, {{.*}} ptr inreg noundef null24 reduced(0, 0.0, 0, 0.0, 0);25 // CHECK: call x86_stdcallcc void {{.*}}(i32 inreg noundef 1, i32 inreg noundef 2)26 bar(1,2);27}28