Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 -o - | FileCheck %s
      2 
      3 declare void @llvm.va_start(i8*) nounwind
      4 
      5 declare void @llvm.va_copy(i8*, i8*) nounwind
      6 
      7 declare void @llvm.va_end(i8*) nounwind
      8 
      9 ; CHECK-LABEL: test:
     10 ; CHECK-NOT: 10
     11 define x86_fp80 @test(...) nounwind {
     12 	%ap = alloca i8*		; <i8**> [#uses=3]
     13 	%v1 = bitcast i8** %ap to i8*		; <i8*> [#uses=1]
     14 	call void @llvm.va_start(i8* %v1)
     15 	%t1 = va_arg i8** %ap, x86_fp80		; <x86_fp80> [#uses=1]
     16 	%t2 = va_arg i8** %ap, x86_fp80		; <x86_fp80> [#uses=1]
     17 	%t = fadd x86_fp80 %t1, %t2		; <x86_fp80> [#uses=1]
     18 	ret x86_fp80 %t
     19 }
     20