brintos

brintos / llvm-project-archived public Read only

0
0
Text · 693 B · ca79ed8 Raw
27 lines · plain
1; RUN: llc -mtriple=hexagon -verify-machineinstrs < %s | FileCheck %s2; CHECK: memw3 4; Check that the testcase compiles without errors.5 6target triple = "hexagon"7 8; Function Attrs: nounwind9define i32 @f0(ptr %a0, i32 %a1) #0 {10b0:11  br label %b112 13b1:                                               ; preds = %b014  %v0 = load i32, ptr %a0, align 415  %v1 = mul nsw i32 2, %v016  %v2 = icmp slt i32 %a1, %v117  br i1 %v2, label %b2, label %b318 19b2:                                               ; preds = %b120  ret i32 021 22b3:                                               ; preds = %b123  ret i32 %v124}25 26attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }27