summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2005-12-01-Crash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-01 23:14:09 +0000
committerChris Lattner <sabre@nondot.org>2005-12-01 23:14:09 +0000
commit43cb6effd3fce59141b64c6293c307e0d0ed145e (patch)
tree29c643aa6f7393a1ca85060611a0543f33a08586 /test/CodeGen/Generic/2005-12-01-Crash.ll
parent48ba8221af97cc76cb2018ceac490d7b5d0fa6ff (diff)
downloadllvm-43cb6effd3fce59141b64c6293c307e0d0ed145e.tar.gz
llvm-43cb6effd3fce59141b64c6293c307e0d0ed145e.tar.bz2
llvm-43cb6effd3fce59141b64c6293c307e0d0ed145e.tar.xz
New testcase that crashes llc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2005-12-01-Crash.ll')
-rw-r--r--test/CodeGen/Generic/2005-12-01-Crash.ll23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2005-12-01-Crash.ll b/test/CodeGen/Generic/2005-12-01-Crash.ll
new file mode 100644
index 0000000000..a3238da001
--- /dev/null
+++ b/test/CodeGen/Generic/2005-12-01-Crash.ll
@@ -0,0 +1,23 @@
+; RUN: llvm-as < %s | llc
+
+%str = external global [36 x sbyte] ; <[36 x sbyte]*> [#uses=0]
+%str = external global [29 x sbyte] ; <[29 x sbyte]*> [#uses=0]
+%str1 = external global [29 x sbyte] ; <[29 x sbyte]*> [#uses=0]
+%str2 = external global [29 x sbyte] ; <[29 x sbyte]*> [#uses=1]
+%str = external global [2 x sbyte] ; <[2 x sbyte]*> [#uses=0]
+%str3 = external global [2 x sbyte] ; <[2 x sbyte]*> [#uses=0]
+%str4 = external global [2 x sbyte] ; <[2 x sbyte]*> [#uses=0]
+%str5 = external global [2 x sbyte] ; <[2 x sbyte]*> [#uses=0]
+
+implementation ; Functions:
+
+void %printArgsNoRet(int %a1, float %a2, sbyte %a3, double %a4, sbyte* %a5, int %a6, float %a7, sbyte %a8, double %a9, sbyte* %a10, int %a11, float %a12, sbyte %a13, double %a14, sbyte* %a15) {
+entry:
+ %tmp17 = cast sbyte %a13 to int ; <int> [#uses=1]
+ %tmp23 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([29 x sbyte]* %str2, int 0, uint 0), int %a11, double 0.000000e+00, int %tmp17, double %a14, int 0 ) ; <int> [#uses=0]
+ ret void
+}
+
+declare int %printf(sbyte*, ...)
+
+declare int %main(int, sbyte**)