1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/ARM/vcmp-crash.ll
James Molloy 29f53382f7 [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
2017-02-13 17:18:00 +00:00

12 lines
328 B
LLVM

; 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
}