diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-12-06 09:59:12 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-12-06 09:59:12 +0000 |
commit | 9f9758935af0a6d9ca513d14412c5e6a2a8032d5 (patch) | |
tree | 304e2e10c27189fff0ea6aafcc8a95fba81f9f9a /test | |
parent | 8bf51dc72bffd9a2e2fcc3d3e0215c859eb1d60f (diff) | |
download | llvm-9f9758935af0a6d9ca513d14412c5e6a2a8032d5.tar.gz llvm-9f9758935af0a6d9ca513d14412c5e6a2a8032d5.tar.bz2 llvm-9f9758935af0a6d9ca513d14412c5e6a2a8032d5.tar.xz |
[SystemZ] Use LOAD AND TEST for comparisons with -0
...since it os equivalent to comparison with +0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/SystemZ/fp-cmp-04.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/fp-cmp-04.ll b/test/CodeGen/SystemZ/fp-cmp-04.ll index 8d842164fa..705a276563 100644 --- a/test/CodeGen/SystemZ/fp-cmp-04.ll +++ b/test/CodeGen/SystemZ/fp-cmp-04.ll @@ -346,3 +346,22 @@ store: exit: ret double %val } + +; Repeat f2 with a comparison against -0. +define float @f17(float %a, float %b, float *%dest) { +; CHECK-LABEL: f17: +; CHECK: aebr %f0, %f2 +; CHECK-NEXT: jl .L{{.*}} +; CHECK: br %r14 +entry: + %res = fadd float %a, %b + %cmp = fcmp olt float %res, -0.0 + br i1 %cmp, label %exit, label %store + +store: + store float %b, float *%dest + br label %exit + +exit: + ret float %res +} |