brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · e3f3698 Raw
55 lines · plain
1; RUN: llc -mtriple=hexagon -O3 -verify-machineinstrs -hexagon-initial-cfg-cleanup=0 -hexagon-instsimplify=0 < %s | FileCheck %s2;3; Check that this testcase compiles successfully and that a new-value jump4; has been created.5; CHECK: if (cmp.gtu(r{{[0-9]+}}.new,r{{[0-9]+}})) jump6 7target triple = "hexagon"8 9@g0 = external hidden unnamed_addr global [182 x i16], align 810 11define void @fred(i16 signext %a0, i16 signext %a1) #0 {12b1:13  %v1 = sext i16 %a0 to i3214  %v2 = getelementptr inbounds [182 x i16], ptr @g0, i32 0, i32 %v115  %v3 = sext i16 %a1 to i3216  %v4 = call i32 @llvm.hexagon.A2.asrh(i32 undef)17  %v5 = trunc i32 %v4 to i1618  br i1 undef, label %b6, label %b1419 20b6:                                               ; preds = %b121  %v7 = sext i16 %v5 to i3222  br label %b823 24b8:                                               ; preds = %b8, %b625  %v9 = phi i32 [ 128, %b6 ], [ %v13, %b8 ]26  %v10 = sub nsw i32 %v9, %v727  %v11 = getelementptr inbounds [182 x i16], ptr @g0, i32 0, i32 %v1028  %v12 = load i16, ptr %v11, align 229  %v13 = add nuw nsw i32 %v9, 130  br label %b831 32b14:                                              ; preds = %b133  br i1 undef, label %b16, label %b1534 35b15:                                              ; preds = %b1436  unreachable37 38b16:                                              ; preds = %b1439  %v17 = getelementptr [182 x i16], ptr @g0, i32 0, i32 %v340  %v18 = icmp ugt ptr %v17, %v241  %v19 = or i1 %v18, undef42  br i1 %v19, label %b20, label %b2143 44b20:                                              ; preds = %b1645  unreachable46 47b21:                                              ; preds = %b1648  ret void49}50 51declare i32 @llvm.hexagon.A2.asrh(i32) #152 53attributes #0 = { nounwind "target-cpu"="hexagonv62" }54attributes #1 = { nounwind readnone }55