File: jtstat.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (71 lines) | stat: -rw-r--r-- 2,392 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC16

@s = global i8 115, align 1
@c = common global i8 0, align 1
@.str = private unnamed_addr constant [5 x i8] c"%c \0A\00", align 1

define void @test(i32 %i) nounwind {
entry:
  %i.addr = alloca i32, align 4
  store i32 %i, ptr %i.addr, align 4
  %0 = load i32, ptr %i.addr, align 4
  switch i32 %0, label %sw.epilog [
    i32 115, label %sw.bb
    i32 105, label %sw.bb1
    i32 100, label %sw.bb2
    i32 108, label %sw.bb3
    i32 99, label %sw.bb4
    i32 68, label %sw.bb5
    i32 81, label %sw.bb6
    i32 76, label %sw.bb7
  ]

sw.bb:                                            ; preds = %entry
  store i8 115, ptr @c, align 1
  br label %sw.epilog

sw.bb1:                                           ; preds = %entry
  store i8 105, ptr @c, align 1
  br label %sw.epilog

sw.bb2:                                           ; preds = %entry
  store i8 100, ptr @c, align 1
  br label %sw.epilog

sw.bb3:                                           ; preds = %entry
  store i8 108, ptr @c, align 1
  br label %sw.epilog

sw.bb4:                                           ; preds = %entry
  store i8 99, ptr @c, align 1
  br label %sw.epilog

sw.bb5:                                           ; preds = %entry
  store i8 68, ptr @c, align 1
  br label %sw.epilog

sw.bb6:                                           ; preds = %entry
  store i8 81, ptr @c, align 1
  br label %sw.epilog

sw.bb7:                                           ; preds = %entry
  store i8 76, ptr @c, align 1
  br label %sw.epilog

sw.epilog:                                        ; preds = %entry, %sw.bb7, %sw.bb6, %sw.bb5, %sw.bb4, %sw.bb3, %sw.bb2, %sw.bb1, %sw.bb
  ret void
}

; CHECK-STATIC16: li	${{[0-9]+}}, %hi($JTI{{[0-9]+}}_{{[0-9]+}})
; CHECK-STATIC16: lw	${{[0-9]+}}, %lo($JTI{{[0-9]+}}_{{[0-9]+}})(${{[0-9]+}})
; CHECK-STATIC16: $JTI{{[0-9]+}}_{{[0-9]+}}:
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})