[llvm-commits] [llvm] r55897 - /llvm/trunk/test/CodeGen/Generic/fastcall.ll
Rafael Espindola
rafael.espindola at gmail.com
Mon Sep 8 04:17:54 PDT 2008
Author: rafael
Date: Mon Sep 8 06:17:54 2008
New Revision: 55897
URL: http://llvm.org/viewvc/llvm-project?rev=55897&view=rev
Log:
Add testcase from bug 2770.
Added:
llvm/trunk/test/CodeGen/Generic/fastcall.ll
Added: llvm/trunk/test/CodeGen/Generic/fastcall.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/fastcall.ll?rev=55897&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/fastcall.ll (added)
+++ llvm/trunk/test/CodeGen/Generic/fastcall.ll Mon Sep 8 06:17:54 2008
@@ -0,0 +1,14 @@
+; Test fastcc works. Test from bug 2770.
+; RUN: llvm-as < %s | llc -relocation-model=pic
+
+
+%struct.__gcov_var = type { i32 }
+ at __gcov_var = external global %struct.__gcov_var
+
+define fastcc void @gcov_read_words(i32 %words) {
+entry:
+ store i32 %words, i32* getelementptr (%struct.__gcov_var*
+ at __gcov_var,
+i32 0, i32 0)
+ ret void
+}
More information about the llvm-commits
mailing list