James Molloy | 0ae2202 | 2017-02-13 17:18:00 +0000 | [diff] [blame^] | 1 | ; RUN: llc -mcpu=cortex-m4 < %s | FileCheck %s |
2 | |||||
3 | target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" | ||||
4 | target triple = "thumbv7em-none--eabi" | ||||
5 | |||||
6 | ; CHECK: vcmp.f32 | ||||
7 | define double @f(double %a, double %b, double %c, float %d) { | ||||
8 | %1 = fcmp oeq float %d, 0.0 | ||||
9 | %2 = select i1 %1, double %a, double %c | ||||
10 | ret double %2 | ||||
11 | } |