diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-03-12 21:44:17 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-03-12 21:44:17 +0000 |
| commit | 5b034c83d655f9dcc7a35bb82d34ac7a2b44db6f (patch) | |
| tree | 37e523756dfb580230dbbabe0fd67f325c2f5f3b /llvm | |
| parent | 87a3180343481a051ca3130969cfbceb41aee96f (diff) | |
| download | bcm5719-llvm-5b034c83d655f9dcc7a35bb82d34ac7a2b44db6f.tar.gz bcm5719-llvm-5b034c83d655f9dcc7a35bb82d34ac7a2b44db6f.zip | |
[InstSimplify] add fcmp tests for constant NaN vector with undef elt; NFC
llvm-svn: 327335
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/floating-point-compare.ll | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstSimplify/floating-point-compare.ll b/llvm/test/Transforms/InstSimplify/floating-point-compare.ll index a44082940ed..219bb181e6c 100644 --- a/llvm/test/Transforms/InstSimplify/floating-point-compare.ll +++ b/llvm/test/Transforms/InstSimplify/floating-point-compare.ll @@ -1,4 +1,4 @@ -; NOTE: Assertions have been autogenerated by update_test_checks.py +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -instsimplify -S | FileCheck %s ; Infinity @@ -354,3 +354,21 @@ define <2 x i1> @orderedCompareWithNaNVector(<2 x double> %A) { ret <2 x i1> %cmp } +define <2 x i1> @orderedCompareWithNaNVector_undef_elt(<2 x double> %A) { +; CHECK-LABEL: @orderedCompareWithNaNVector_undef_elt( +; CHECK-NEXT: [[CMP:%.*]] = fcmp olt <2 x double> [[A:%.*]], <double 0xFFFFFFFFFFFFFFFF, double undef> +; CHECK-NEXT: ret <2 x i1> [[CMP]] +; + %cmp = fcmp olt <2 x double> %A, <double 0xFFFFFFFFFFFFFFFF, double undef> + ret <2 x i1> %cmp +} + +define <2 x i1> @unorderedCompareWithNaNVector_undef_elt(<2 x double> %A) { +; CHECK-LABEL: @unorderedCompareWithNaNVector_undef_elt( +; CHECK-NEXT: [[CMP:%.*]] = fcmp ult <2 x double> [[A:%.*]], <double undef, double 0xFFFFFFFFFFFFFFFF> +; CHECK-NEXT: ret <2 x i1> [[CMP]] +; + %cmp = fcmp ult <2 x double> %A, <double undef, double 0xFFFFFFFFFFFFFFFF> + ret <2 x i1> %cmp +} + |

