brintos

brintos / llvm-project-archived public Read only

0
0
Text · 934 B · dd90c04 Raw
34 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; REQUIRES: asserts3 4; This testcase used to crash due to putting the bitsplit instruction in a5; wrong place.6; CHECK: bitsplit7 8target triple = "hexagon"9 10define fastcc i32 @fred(i32 %a0, ptr %a1, i1 %a2, i1 %a3) #0 {11b1:12  %v2 = lshr i32 %a0, 1613  %v3 = trunc i32 %v2 to i814  br i1 %a2, label %b6, label %b415 16b4:                                               ; preds = %b117  %v5 = and i32 %a0, 6553518  br i1 %a3, label %b8, label %b919 20b6:                                               ; preds = %b121  %v7 = and i32 %a0, 6553522  br label %b923 24b8:                                               ; preds = %b425  store i8 %v3, ptr %a1, align 226  ret i32 127 28b9:                                               ; preds = %b6, %b429  %v10 = phi i32 [ %v7, %b6 ], [ %v5, %b4 ]30  ret i32 %v1031}32 33attributes #0 = { nounwind optsize "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" }34