Home | History | Annotate | Download | only in Hexagon
      1 ; RUN: llc -march=hexagon -verify-machineinstrs < %s | FileCheck %s
      2 ; CHECK: memw
      3 
      4 ; Check that the testcase compiles without errors.
      5 
      6 target triple = "hexagon"
      7 
      8 ; Function Attrs: nounwind
      9 define void @fred() #0 {
     10 entry:
     11   br label %for.cond
     12 
     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
     18 
     19 for.body:                                         ; preds = %for.cond
     20   unreachable
     21 
     22 for.end13:                                        ; preds = %for.cond
     23   ret void
     24 }
     25 
     26 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }
     27 
     28