[WebAssembly] Switch to MC for instruction printing.
[oota-llvm.git] / test / CodeGen / Hexagon / vect / vect-fma.ll
1 ; RUN: llc -march=hexagon -mcpu=hexagonv5 < %s
2 ; REQUIRES: asserts
3 ; Used to fail with "SplitVectorResult #0: 0x16cbe60: v4f64 = fma"
4
5 ; ModuleID = 'bugpoint-reduced-simplified.bc'
6 target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32"
7 target triple = "hexagon-unknown-linux-gnu"
8
9 define void @run() nounwind {
10 entry:
11   br label %polly.loop_header
12
13 polly.loop_after:                                 ; preds = %polly.loop_header
14   ret void
15
16 polly.loop_header:                                ; preds = %polly.loop_body, %entry
17   %0 = icmp sle i32 undef, 399
18   br i1 %0, label %polly.loop_body, label %polly.loop_after
19
20 polly.loop_body:                                  ; preds = %polly.loop_header
21   %_p_vec_full = load <4 x double>, <4 x double>* undef, align 8
22   %mulp_vec = fmul <4 x double> %_p_vec_full, <double 7.000000e+00, double 7.000000e+00, double 7.000000e+00, double 7.000000e+00>
23   %addp_vec = fadd <4 x double> undef, %mulp_vec
24   store <4 x double> %addp_vec, <4 x double>* undef, align 8
25   br label %polly.loop_header
26 }