source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/arm64-fp-contract-zero.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 487 bytes
Line 
1; RUN: llc -mtriple=arm64 -fp-contract=fast -o - %s | FileCheck %s
2
3
4; Make sure we don't try to fold an fneg into +0.0, creating an illegal constant
5; -0.0. It's also good, though not essential, that we don't resort to a litpool.
6define double @test_fms_fold(double %a, double %b) {
7; CHECK-LABEL: test_fms_fold:
8; CHECK: fmov {{d[0-9]+}}, xzr
9; CHECK: ret
10  %mul = fmul double %a, 0.000000e+00
11  %mul1 = fmul double %b, 0.000000e+00
12  %sub = fsub double %mul, %mul1
13  ret double %sub
14}
Note: See TracBrowser for help on using the repository browser.