OSDN Git Service

[AArch64] Small rejig of fmax tests, NFCI.
authorJames Molloy <james.molloy@arm.com>
Thu, 13 Aug 2015 17:28:10 +0000 (17:28 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 13 Aug 2015 17:28:10 +0000 (17:28 +0000)
commit8eafed2468df19fa7968cb73d0f3390ca194acdc
tree19915d680ec0925788765e4b96c2b38db923b973
parent22af77d94f33359da9a26c7048e586027f4217bc
[AArch64] Small rejig of fmax tests, NFCI.

These tests relied on -enable-no-nans-fp-math, whereas soon they'll take their no-nans hint
from the FCMP instruction itself, so split the no-nans stuff out into its own test.

Also do a slight rejig of instruction order. The old FMIN/MAX backend matching had to deal with looking through casts, which it never did particularly well. Now, instcombine will recognize such patterns and canonicalize the cast outside the select. So modify the test inputs to assume that instcombine has already run.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244913 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/arm64-fmax-safe.ll [new file with mode: 0644]
test/CodeGen/AArch64/arm64-fmax.ll