2019-12-09 23:47:47 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
2008-01-18 03:59:44 +08:00
|
|
|
|
|
|
|
define void @foo(x86_fp80 %a, x86_fp80 %b, float* %fp) {
|
2019-12-09 23:47:47 +08:00
|
|
|
; CHECK-LABEL: foo:
|
|
|
|
; CHECK: # %bb.0:
|
|
|
|
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%esp)
|
|
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%esp)
|
|
|
|
; CHECK-NEXT: faddp %st, %st(1)
|
|
|
|
; CHECK-NEXT: fstps (%eax)
|
|
|
|
; CHECK-NEXT: retl
|
2009-06-05 06:49:04 +08:00
|
|
|
%c = fadd x86_fp80 %a, %b
|
2008-01-18 03:59:44 +08:00
|
|
|
%d = fptrunc x86_fp80 %c to float
|
|
|
|
store float %d, float* %fp
|
|
|
|
ret void
|
|
|
|
}
|