brintos

brintos / llvm-project-archived public Read only

0
0
Text · 782 B · 5516891 Raw
35 lines · plain
1; RUN: llc -mtriple=hexagon -print-after=finalize-isel -o /dev/null 2>&1 < %s | FileCheck %s2; REQUIRES: asserts3 4; CHECK: J2_call @f15; CHECK: PS_call_nr @f26 7target triple = "hexagon"8 9@g0 = external global i3210 11; Function Attrs: nounwind12define i32 @f0() #0 {13b0:14  %v0 = load i32, ptr @g0, align 415  %v1 = tail call i32 @f1(i32 %v0) #016  %v2 = icmp eq i32 %v1, 017  br i1 %v2, label %b1, label %b218 19b1:                                               ; preds = %b020  tail call void @f2() #221  unreachable22 23b2:                                               ; preds = %b024  ret i32 025}26 27declare i32 @f1(i32)28 29; Function Attrs: noreturn30declare void @f2() #131 32attributes #0 = { nounwind "disable-tail-calls"="true" }33attributes #1 = { noreturn }34attributes #2 = { noreturn nounwind }35