[cfe-commits] r68415 - /cfe/trunk/test/CodeGen/regparm.c
Anton Korobeynikov
asl at math.spbu.ru
Fri Apr 3 17:49:38 PDT 2009
Author: asl
Date: Fri Apr 3 19:49:38 2009
New Revision: 68415
URL: http://llvm.org/viewvc/llvm-project?rev=68415&view=rev
Log:
Testcase for regparm codegen
Added:
cfe/trunk/test/CodeGen/regparm.c
Added: cfe/trunk/test/CodeGen/regparm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/regparm.c?rev=68415&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/regparm.c (added)
+++ cfe/trunk/test/CodeGen/regparm.c Fri Apr 3 19:49:38 2009
@@ -0,0 +1,19 @@
+// RUN: clang-cc -triple i386-unknown-unknown %s -emit-llvm -o - | grep inreg | count 2
+
+#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) {
+ reduced(0, 0.0, 0, 0.0, 0);
+}
More information about the cfe-commits
mailing list