fastcall example
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 13 Aug 2008 14:02:21 +0000 (14:02 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 13 Aug 2008 14:02:21 +0000 (14:02 +0000)
[r21147]

ir/be/test/fastcall.c [new file with mode: 0644]

diff --git a/ir/be/test/fastcall.c b/ir/be/test/fastcall.c
new file mode 100644 (file)
index 0000000..1a5d9f8
--- /dev/null
@@ -0,0 +1,9 @@
+/*$ -fno-inline $*/
+
+int __attribute__((fastcall)) test(int a, int b, int c) {
+       return a+b - c;
+}
+
+int main() {
+       return test(4, -4, 0);
+}