1 ; RUN: llc -march=hexagon < %s
4 ; This test used to crash in register scavenger due to incorrectly set
7 target triple = "hexagon"
9 define void @foo(i64 %a) #0 {
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
18 lor.lhs.false: ; preds = %entry
19 br i1 undef, label %return, label %if.then
21 if.then: ; preds = %lor.lhs.false, %entry
24 return: ; preds = %if.then, %lor.lhs.false
28 attributes #0 = { norecurse nounwind }