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