annotate test/CodeGen/ARM/v8m.base-jumptable_alignment.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 -filetype=obj -o /dev/null < %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ; RUN: llc -filetype=asm < %s | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; ModuleID = 'bugpoint-reduced-simplified.bc'
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 source_filename = "bugpoint-output-39ed676.bc"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 target triple = "thumbv8m.base-arm-none-eabi"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 @crc32_tab = external unnamed_addr global [256 x i32], align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 @g_566 = external global i32**, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 define void @main() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 entry:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 %0 = load volatile i32**, i32*** @g_566, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 br label %func_16.exit.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 lbl_1394.i.i.i.loopexit: ; preds = %for.cond14.preheader.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 unreachable
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 func_16.exit.i.i.i: ; preds = %entry
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 br i1 undef, label %for.cond7.preheader.i.lr.ph.i.i, label %for.end476.i.i.i.loopexit
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 for.cond7.preheader.i.lr.ph.i.i: ; preds = %func_16.exit.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 br i1 undef, label %for.end476.i.i.i.loopexit, label %for.cond7.preheader.i.i.preheader.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 for.cond7.preheader.i.i.preheader.i: ; preds = %for.cond7.preheader.i.lr.ph.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 br label %for.cond14.preheader.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 for.cond7.preheader.i.us.i.i: ; preds = %for.cond7.preheader.i.lr.ph.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 unreachable
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 for.cond14.preheader.us.i.i.i: ; preds = %for.inc459.us.i.i.i, %for.cond7.preheader.i.i.preheader.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 ; CHECK: @ BB#4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 ; CHECK-NEXT: .p2align 2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 switch i4 undef, label %func_1.exit.loopexit [
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 i4 0, label %for.inc459.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37 i4 -5, label %for.inc459.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 i4 2, label %lbl_1394.i.i.i.loopexit
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 i4 3, label %for.end476.i.i.i.loopexit
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 ]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 for.inc459.us.i.i.i: ; preds = %for.cond14.preheader.us.i.i.i, %for.cond14.preheader.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 br label %for.cond14.preheader.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45 for.end476.i.i.i.loopexit: ; preds = %for.cond14.preheader.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 unreachable
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48 func_1.exit.loopexit: ; preds = %for.cond14.preheader.us.i.i.i
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 %arrayidx.i63.i.i5252 = getelementptr inbounds [256 x i32], [256 x i32]* @crc32_tab, i32 0, i32 undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50 unreachable
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
51 }