Simon Pilgrim | fc4d4b2 | 2016-07-19 13:35:11 +0000 | [diff] [blame^] | 1 | ; RUN: llc -mtriple=arm64-unknown-unknown -o - %s |
Matthias Braun | 7526035 | 2015-02-24 18:52:04 +0000 | [diff] [blame] | 2 | |
3 | ; Make sure we don't run into an assert in the aarch64 code selection when | ||||
4 | ; DAGCombining fails. | ||||
5 | |||||
6 | declare void @t() | ||||
7 | |||||
8 | define void @foo() { | ||||
9 | %c = bitcast i64 270458 to i64 | ||||
10 | %t0 = lshr i64 %c, 422383 | ||||
11 | %t1 = trunc i64 %t0 to i1 | ||||
12 | br i1 %t1, label %BB1, label %BB0 | ||||
13 | |||||
14 | BB0: | ||||
15 | call void @t() | ||||
16 | br label %BB1 | ||||
17 | |||||
18 | BB1: | ||||
19 | ret void | ||||
20 | } |