diff options
| author | James Molloy <james.molloy@arm.com> | 2017-02-13 17:18:00 +0000 |
|---|---|---|
| committer | James Molloy <james.molloy@arm.com> | 2017-02-13 17:18:00 +0000 |
| commit | 0ae22022354b074f78730056679dcc02635a76ca (patch) | |
| tree | 983fcbc87370f70f469342bffd0de30d2785a535 /llvm/test | |
| parent | 7b7f40297f23cbadbdd7e267b7cbf71d6bb3f864 (diff) | |
| download | bcm5719-llvm-0ae22022354b074f78730056679dcc02635a76ca.tar.gz bcm5719-llvm-0ae22022354b074f78730056679dcc02635a76ca.zip | |
[ARM] Fix crash caused by r294945
I'd missed a creator of FCMP nodes - duplicateCmp().
Kindly and promptly reported by Gabor Ballabas, due to his CSiBE test suite.
llvm-svn: 294968
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/ARM/vcmp-crash.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/vcmp-crash.ll b/llvm/test/CodeGen/ARM/vcmp-crash.ll new file mode 100644 index 00000000000..2d3262be584 --- /dev/null +++ b/llvm/test/CodeGen/ARM/vcmp-crash.ll @@ -0,0 +1,11 @@ +; RUN: llc -mcpu=cortex-m4 < %s | FileCheck %s + +target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" +target triple = "thumbv7em-none--eabi" + +; CHECK: vcmp.f32 +define double @f(double %a, double %b, double %c, float %d) { + %1 = fcmp oeq float %d, 0.0 + %2 = select i1 %1, double %a, double %c + ret double %2 +} |

