[X86] Add test case for f128 fma. NFC

This should be turned into a libcall to fmal. We already do it
correctly, but we had no test to confirm.
This commit is contained in:
Craig Topper 2019-11-21 11:12:35 -08:00
parent 5fcf89f778
commit fea8288c17
1 changed files with 10 additions and 0 deletions

View File

@ -324,3 +324,13 @@ entry:
ret void
}
declare fp128 @llvm.round.f128(fp128)
define fp128 @Test128FMA(fp128 %a, fp128 %b, fp128 %c) nounwind {
; CHECK-LABEL: Test128FMA:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: jmp fmal # TAILCALL
entry:
%call = call fp128 @llvm.fma.f128(fp128 %a, fp128 %b, fp128 %c)
ret fp128 %call
}
declare fp128 @llvm.fma.f128(fp128, fp128, fp128)