Krzysztof Parzyszek | 16331f0 | 2016-04-20 14:33:23 +0000 | [diff] [blame^] | 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 | |
| 7 | target triple = "hexagon" |
| 8 | |
| 9 | define void @foo(i64 %a) #0 { |
| 10 | entry: |
| 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 | |
| 18 | lor.lhs.false: ; preds = %entry |
| 19 | br i1 undef, label %return, label %if.then |
| 20 | |
| 21 | if.then: ; preds = %lor.lhs.false, %entry |
| 22 | br label %return |
| 23 | |
| 24 | return: ; preds = %if.then, %lor.lhs.false |
| 25 | ret void |
| 26 | } |
| 27 | |
| 28 | attributes #0 = { norecurse nounwind } |