blob: 05ebe1eb888b2c63915a20a2e8e2ad94d8d9c49f [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This shouldn't crash
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llc -march=alpha
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004target datalayout = "e-p:64:64"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005target triple = "alphaev6-unknown-linux-gnu"
6deplibs = [ "c", "crtend", "stdc++" ]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00007 %struct.__va_list_tag = type { i8*, i32 }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00009define i32 @emit_library_call_value(i32 %nargs, ...) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000011 %tmp.223 = va_arg %struct.__va_list_tag* null, i32 ; <i32> [#uses=1]
12 ret i32 %tmp.223
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000014