annotate test/CodeGen/Hexagon/expand-condsets-undefvni.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc -march=hexagon < %s | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; Check that this compiles successfully.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; CHECK: jumpr r31
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 target triple = "hexagon"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 define i64 @fred(i64 %a0, i64 %a1) local_unnamed_addr #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 b2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 %v3 = lshr i64 %a1, 52
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 %v4 = trunc i64 %v3 to i11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 switch i11 %v4, label %b15 [
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 i11 -1, label %b5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 i11 0, label %b14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 ]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 b5: ; preds = %b2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 br i1 undef, label %b13, label %b6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 b6: ; preds = %b5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 %v7 = or i64 %a1, 2251799813685248
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 br i1 undef, label %b8, label %b10
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 b8: ; preds = %b6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 %v9 = select i1 undef, i64 %v7, i64 undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 br label %b16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 b10: ; preds = %b6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 br i1 undef, label %b16, label %b11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 b11: ; preds = %b10
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 %v12 = select i1 undef, i64 undef, i64 %v7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 br label %b16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 b13: ; preds = %b5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 br label %b16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 b14: ; preds = %b2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 br label %b16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41 b15: ; preds = %b2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 br label %b16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44 b16: ; preds = %b15, %b14, %b13, %b11, %b10, %b8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45 %v17 = phi i64 [ undef, %b13 ], [ -2251799813685248, %b14 ], [ 0, %b15 ], [ %v12, %b11 ], [ %v9, %b8 ], [ %v7, %b10 ]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 ret i64 %v17
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 attributes #0 = { nounwind "target-cpu"="hexagonv62" }