diff options
Diffstat (limited to 'test/CodeGen/Generic/fastcall.ll')
-rw-r--r-- | test/CodeGen/Generic/fastcall.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/fastcall.ll b/test/CodeGen/Generic/fastcall.ll new file mode 100644 index 0000000..35e04f1 --- /dev/null +++ b/test/CodeGen/Generic/fastcall.ll @@ -0,0 +1,14 @@ +; Test fastcc works. Test from bug 2770. +; RUN: llc < %s -relocation-model=pic + + +%struct.__gcov_var = type { i32 } +@__gcov_var = external global %struct.__gcov_var + +define fastcc void @gcov_read_words(i32 %words) { +entry: + store i32 %words, i32* getelementptr (%struct.__gcov_var* +@__gcov_var, +i32 0, i32 0) + ret void +} |