1; RUN: llc -march=hexagon < %s
2; REQUIRES: asserts
3
4; This test used to crash in register scavenger due to incorrectly set
5; kill flags.
6
7target triple = "hexagon"
8
9define void @foo(i64 %a) #0 {
10entry:
11  %conv.i = and i64 %a, 9218868437227405312
12  %cmp = icmp ne i64 %conv.i, 9218868437227405312
13  %and.i37 = and i64 %a, 4503599627370495
14  %tobool = icmp eq i64 %and.i37, 0
15  %or.cond = or i1 %cmp, %tobool
16  br i1 %or.cond, label %lor.lhs.false, label %if.then
17
18lor.lhs.false:                                    ; preds = %entry
19  br i1 undef, label %return, label %if.then
20
21if.then:                                          ; preds = %lor.lhs.false, %entry
22  br label %return
23
24return:                                           ; preds = %if.then, %lor.lhs.false
25  ret void
26}
27
28attributes #0 = { norecurse nounwind }
29