OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [exp/] [norm/] [triedata_test.go] - Blame information for rev 848

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Generated by running
2
//      maketesttables
3
// DO NOT EDIT
4
 
5
package norm
6
 
7
var testRunes = []rune{1, 12, 127, 128, 256, 2047, 2048, 2457, 65535, 65536, 65793, 1114111, 512, 513, 514, 528, 533}
8
 
9
// testdataValues: 192 entries, 384 bytes
10
// Block 2 is the null block.
11
var testdataValues = [192]uint16{
12
        // Block 0x0, offset 0x0
13
        0x000c: 0x0001,
14
        // Block 0x1, offset 0x40
15
        0x007f: 0x0002,
16
        // Block 0x2, offset 0x80
17
}
18
 
19
// testdataSparseOffset: 10 entries, 20 bytes
20
var testdataSparseOffset = []uint16{0x0, 0x2, 0x4, 0x8, 0xa, 0xc, 0xe, 0x10, 0x12, 0x14}
21
 
22
// testdataSparseValues: 22 entries, 88 bytes
23
var testdataSparseValues = [22]valueRange{
24
        // Block 0x0, offset 0x1
25
        {value: 0x0000, lo: 0x01},
26
        {value: 0x0003, lo: 0x80, hi: 0x80},
27
        // Block 0x1, offset 0x2
28
        {value: 0x0000, lo: 0x01},
29
        {value: 0x0004, lo: 0x80, hi: 0x80},
30
        // Block 0x2, offset 0x3
31
        {value: 0x0001, lo: 0x03},
32
        {value: 0x000c, lo: 0x80, hi: 0x82},
33
        {value: 0x000f, lo: 0x90, hi: 0x90},
34
        {value: 0x0010, lo: 0x95, hi: 0x95},
35
        // Block 0x3, offset 0x4
36
        {value: 0x0000, lo: 0x01},
37
        {value: 0x0005, lo: 0xbf, hi: 0xbf},
38
        // Block 0x4, offset 0x5
39
        {value: 0x0000, lo: 0x01},
40
        {value: 0x0006, lo: 0x80, hi: 0x80},
41
        // Block 0x5, offset 0x6
42
        {value: 0x0000, lo: 0x01},
43
        {value: 0x0007, lo: 0x99, hi: 0x99},
44
        // Block 0x6, offset 0x7
45
        {value: 0x0000, lo: 0x01},
46
        {value: 0x0008, lo: 0xbf, hi: 0xbf},
47
        // Block 0x7, offset 0x8
48
        {value: 0x0000, lo: 0x01},
49
        {value: 0x0009, lo: 0x80, hi: 0x80},
50
        // Block 0x8, offset 0x9
51
        {value: 0x0000, lo: 0x01},
52
        {value: 0x000a, lo: 0x81, hi: 0x81},
53
        // Block 0x9, offset 0xa
54
        {value: 0x0000, lo: 0x01},
55
        {value: 0x000b, lo: 0xbf, hi: 0xbf},
56
}
57
 
58
// testdataLookup: 640 bytes
59
// Block 0 is the null block.
60
var testdataLookup = [640]uint8{
61
        // Block 0x0, offset 0x0
62
        // Block 0x1, offset 0x40
63
        // Block 0x2, offset 0x80
64
        // Block 0x3, offset 0xc0
65
        0x0c2: 0x03, 0x0c4: 0x04,
66
        0x0c8: 0x05,
67
        0x0df: 0x06,
68
        0x0e0: 0x04,
69
        0x0ef: 0x05,
70
        0x0f0: 0x07, 0x0f4: 0x09,
71
        // Block 0x4, offset 0x100
72
        0x120: 0x07, 0x126: 0x08,
73
        // Block 0x5, offset 0x140
74
        0x17f: 0x09,
75
        // Block 0x6, offset 0x180
76
        0x180: 0x0a, 0x184: 0x0b,
77
        // Block 0x7, offset 0x1c0
78
        0x1d0: 0x06,
79
        // Block 0x8, offset 0x200
80
        0x23f: 0x0c,
81
        // Block 0x9, offset 0x240
82
        0x24f: 0x08,
83
}
84
 
85
var testdataTrie = trie{testdataLookup[:], testdataValues[:], testdataSparseValues[:], testdataSparseOffset[:], 3}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.