xref: /llvm-project/llvm/test/CodeGen/X86/2008-11-03-F80VAARG.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=i686-- -o - | FileCheck %s
2
3declare void @llvm.va_start(ptr) nounwind
4
5declare void @llvm.va_copy(ptr, ptr) nounwind
6
7declare void @llvm.va_end(ptr) nounwind
8
9; CHECK-LABEL: test:
10; CHECK-NOT: 10
11define x86_fp80 @test(...) nounwind {
12	%ap = alloca ptr		; <ptr> [#uses=3]
13	call void @llvm.va_start(ptr %ap)
14	%t1 = va_arg ptr %ap, x86_fp80		; <x86_fp80> [#uses=1]
15	%t2 = va_arg ptr %ap, x86_fp80		; <x86_fp80> [#uses=1]
16	%t = fadd x86_fp80 %t1, %t2		; <x86_fp80> [#uses=1]
17	ret x86_fp80 %t
18}
19