blob: 45587f08fd6cfabf4f96952ce61eb82c34fcca4a [file] [log] [blame]
Andrew Lenharthc20dee32006-01-26 17:43:42 +00001; This shouldn't crash
Dan Gohmanfce288f2009-09-09 00:09:15 +00002; RUN: llc < %s -march=alpha
Andrew Lenharthc20dee32006-01-26 17:43:42 +00003
Tanya Lattner53a66d12008-02-19 01:41:04 +00004target datalayout = "e-p:64:64"
Andrew Lenharthc20dee32006-01-26 17:43:42 +00005target triple = "alphaev6-unknown-linux-gnu"
6deplibs = [ "c", "crtend", "stdc++" ]
Tanya Lattner53a66d12008-02-19 01:41:04 +00007 %struct.__va_list_tag = type { i8*, i32 }
Andrew Lenharthc20dee32006-01-26 17:43:42 +00008
Tanya Lattner53a66d12008-02-19 01:41:04 +00009define i32 @emit_library_call_value(i32 %nargs, ...) {
Andrew Lenharthc20dee32006-01-26 17:43:42 +000010entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000011 %tmp.223 = va_arg %struct.__va_list_tag* null, i32 ; <i32> [#uses=1]
12 ret i32 %tmp.223
Andrew Lenharthc20dee32006-01-26 17:43:42 +000013}
Tanya Lattner53a66d12008-02-19 01:41:04 +000014