Recommit r310809 with a fix for the spill problem
[llvm-core.git] / test / CodeGen / Hexagon / peephole-kill-flags.ll
blob03de15323528f57eac1d601a25fd317f806558d2
1 ; RUN: llc -march=hexagon -verify-machineinstrs < %s | FileCheck %s
2 ; CHECK: memw
4 ; Check that the testcase compiles without errors.
6 target triple = "hexagon"
8 ; Function Attrs: nounwind
9 define void @fred() #0 {
10 entry:
11   br label %for.cond
13 for.cond:                                         ; preds = %entry
14   %0 = load i32, i32* undef, align 4
15   %mul = mul nsw i32 2, %0
16   %cmp = icmp slt i32 undef, %mul
17   br i1 %cmp, label %for.body, label %for.end13
19 for.body:                                         ; preds = %for.cond
20   unreachable
22 for.end13:                                        ; preds = %for.cond
23   ret void
26 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,-hvx-double" }