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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [language/] [cxx/] [ustl/] [current/] [tests/] [bvt18.std] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
================================================
2
Testing tuple<4,float>
3
================================================
4
pt1:                    size = 4, value = (1.00,2.00,3.00,4.00)
5
pt2:                    (5.00,6.00,7.00,8.00)
6
pt2:                    (10.00,11.00,12.00,13.00)
7
pt1 *= 3:               (3.00,6.00,9.00,12.00)
8
pt1 /= 3:               (1.00,2.00,3.00,4.00)
9
pt1 += 3:               (4.00,5.00,6.00,7.00)
10
pt1 -= 3:               (1.00,2.00,3.00,4.00)
11
pt1 *= pt2:             (10.00,22.00,36.00,52.00)
12
pt1 /= pt2:             (1.00,2.00,3.00,4.00)
13
pt1 += pt2:             (11.00,13.00,15.00,17.00)
14
pt1 -= pt2:             (1.00,2.00,3.00,4.00)
15
pt1 = pt1 * pt2:        (10.00,22.00,36.00,52.00)
16
pt1 = pt1 / pt2:        (1.00,2.00,3.00,4.00)
17
pt1 = pt1 + pt2:        (11.00,13.00,15.00,17.00)
18
pt1 = pt1 - pt2:        (1.00,2.00,3.00,4.00)
19
================================================
20
Testing tuple<2,float>
21
================================================
22
pt1:                    size = 2, value = (1.00,2.00)
23
pt2:                    (5.00,6.00)
24
pt2:                    (10.00,11.00)
25
pt1 *= 3:               (3.00,6.00)
26
pt1 /= 3:               (1.00,2.00)
27
pt1 += 3:               (4.00,5.00)
28
pt1 -= 3:               (1.00,2.00)
29
pt1 *= pt2:             (10.00,22.00)
30
pt1 /= pt2:             (1.00,2.00)
31
pt1 += pt2:             (11.00,13.00)
32
pt1 -= pt2:             (1.00,2.00)
33
pt1 = pt1 * pt2:        (10.00,22.00)
34
pt1 = pt1 / pt2:        (1.00,2.00)
35
pt1 = pt1 + pt2:        (11.00,13.00)
36
pt1 = pt1 - pt2:        (1.00,2.00)
37
================================================
38
Testing tuple<4,int32_t>
39
================================================
40
pt1:                    size = 4, value = (1,2,3,4)
41
pt2:                    (5,6,7,8)
42
pt2:                    (10,11,12,13)
43
pt1 *= 3:               (3,6,9,12)
44
pt1 /= 3:               (1,2,3,4)
45
pt1 += 3:               (4,5,6,7)
46
pt1 -= 3:               (1,2,3,4)
47
pt1 *= pt2:             (10,22,36,52)
48
pt1 /= pt2:             (1,2,3,4)
49
pt1 += pt2:             (11,13,15,17)
50
pt1 -= pt2:             (1,2,3,4)
51
pt1 = pt1 * pt2:        (10,22,36,52)
52
pt1 = pt1 / pt2:        (1,2,3,4)
53
pt1 = pt1 + pt2:        (11,13,15,17)
54
pt1 = pt1 - pt2:        (1,2,3,4)
55
================================================
56
Testing tuple<4,uint32_t>
57
================================================
58
pt1:                    size = 4, value = (1,2,3,4)
59
pt2:                    (5,6,7,8)
60
pt2:                    (10,11,12,13)
61
pt1 *= 3:               (3,6,9,12)
62
pt1 /= 3:               (1,2,3,4)
63
pt1 += 3:               (4,5,6,7)
64
pt1 -= 3:               (1,2,3,4)
65
pt1 *= pt2:             (10,22,36,52)
66
pt1 /= pt2:             (1,2,3,4)
67
pt1 += pt2:             (11,13,15,17)
68
pt1 -= pt2:             (1,2,3,4)
69
pt1 = pt1 * pt2:        (10,22,36,52)
70
pt1 = pt1 / pt2:        (1,2,3,4)
71
pt1 = pt1 + pt2:        (11,13,15,17)
72
pt1 = pt1 - pt2:        (1,2,3,4)
73
================================================
74
Testing tuple<2,int32_t>
75
================================================
76
pt1:                    size = 2, value = (1,2)
77
pt2:                    (5,6)
78
pt2:                    (10,11)
79
pt1 *= 3:               (3,6)
80
pt1 /= 3:               (1,2)
81
pt1 += 3:               (4,5)
82
pt1 -= 3:               (1,2)
83
pt1 *= pt2:             (10,22)
84
pt1 /= pt2:             (1,2)
85
pt1 += pt2:             (11,13)
86
pt1 -= pt2:             (1,2)
87
pt1 = pt1 * pt2:        (10,22)
88
pt1 = pt1 / pt2:        (1,2)
89
pt1 = pt1 + pt2:        (11,13)
90
pt1 = pt1 - pt2:        (1,2)
91
================================================
92
Testing tuple<2,uint32_t>
93
================================================
94
pt1:                    size = 2, value = (1,2)
95
pt2:                    (5,6)
96
pt2:                    (10,11)
97
pt1 *= 3:               (3,6)
98
pt1 /= 3:               (1,2)
99
pt1 += 3:               (4,5)
100
pt1 -= 3:               (1,2)
101
pt1 *= pt2:             (10,22)
102
pt1 /= pt2:             (1,2)
103
pt1 += pt2:             (11,13)
104
pt1 -= pt2:             (1,2)
105
pt1 = pt1 * pt2:        (10,22)
106
pt1 = pt1 / pt2:        (1,2)
107
pt1 = pt1 + pt2:        (11,13)
108
pt1 = pt1 - pt2:        (1,2)
109
================================================
110
Testing tuple<4,int16_t>
111
================================================
112
pt1:                    size = 4, value = (1,2,3,4)
113
pt2:                    (5,6,7,8)
114
pt2:                    (10,11,12,13)
115
pt1 *= 3:               (3,6,9,12)
116
pt1 /= 3:               (1,2,3,4)
117
pt1 += 3:               (4,5,6,7)
118
pt1 -= 3:               (1,2,3,4)
119
pt1 *= pt2:             (10,22,36,52)
120
pt1 /= pt2:             (1,2,3,4)
121
pt1 += pt2:             (11,13,15,17)
122
pt1 -= pt2:             (1,2,3,4)
123
pt1 = pt1 * pt2:        (10,22,36,52)
124
pt1 = pt1 / pt2:        (1,2,3,4)
125
pt1 = pt1 + pt2:        (11,13,15,17)
126
pt1 = pt1 - pt2:        (1,2,3,4)
127
================================================
128
Testing tuple<4,uint16_t>
129
================================================
130
pt1:                    size = 4, value = (1,2,3,4)
131
pt2:                    (5,6,7,8)
132
pt2:                    (10,11,12,13)
133
pt1 *= 3:               (3,6,9,12)
134
pt1 /= 3:               (1,2,3,4)
135
pt1 += 3:               (4,5,6,7)
136
pt1 -= 3:               (1,2,3,4)
137
pt1 *= pt2:             (10,22,36,52)
138
pt1 /= pt2:             (1,2,3,4)
139
pt1 += pt2:             (11,13,15,17)
140
pt1 -= pt2:             (1,2,3,4)
141
pt1 = pt1 * pt2:        (10,22,36,52)
142
pt1 = pt1 / pt2:        (1,2,3,4)
143
pt1 = pt1 + pt2:        (11,13,15,17)
144
pt1 = pt1 - pt2:        (1,2,3,4)
145
================================================
146
Testing tuple<8,int8_t>
147
================================================
148
pt1:                    size = 8, value = (1,2,3,4,5,6,7,8)
149
pt2:                    (5,6,7,8,0,0,0,0)
150
pt2:                    (10,11,12,13,14,15,16,17)
151
pt1 *= 3:               (3,6,9,12,15,18,21,24)
152
pt1 /= 3:               (1,2,3,4,5,6,7,8)
153
pt1 += 3:               (4,5,6,7,8,9,10,11)
154
pt1 -= 3:               (1,2,3,4,5,6,7,8)
155
pt1 *= pt2:             (10,22,'$','4','F','Z','p',-120)
156
pt1 /= pt2:             (1,2,3,4,5,6,7,-7)
157
pt1 += pt2:             (11,13,15,17,19,21,23,10)
158
pt1 -= pt2:             (1,2,3,4,5,6,7,-7)
159
pt1 = pt1 * pt2:        (10,22,'$','4','F','Z','p',-119)
160
pt1 = pt1 / pt2:        (1,2,3,4,5,6,7,-7)
161
pt1 = pt1 + pt2:        (11,13,15,17,19,21,23,10)
162
pt1 = pt1 - pt2:        (1,2,3,4,5,6,7,-7)
163
================================================
164
Testing tuple<8,uint8_t>
165
================================================
166
pt1:                    size = 8, value = (1,2,3,4,5,6,7,8)
167
pt2:                    (5,6,7,8,0,0,0,0)
168
pt2:                    (10,11,12,13,14,15,16,17)
169
pt1 *= 3:               (3,6,9,12,15,18,21,24)
170
pt1 /= 3:               (1,2,3,4,5,6,7,8)
171
pt1 += 3:               (4,5,6,7,8,9,10,11)
172
pt1 -= 3:               (1,2,3,4,5,6,7,8)
173
pt1 *= pt2:             (10,22,'$','4','F','Z','p',136)
174
pt1 /= pt2:             (1,2,3,4,5,6,7,8)
175
pt1 += pt2:             (11,13,15,17,19,21,23,25)
176
pt1 -= pt2:             (1,2,3,4,5,6,7,8)
177
pt1 = pt1 * pt2:        (10,22,'$','4','F','Z','p',136)
178
pt1 = pt1 / pt2:        (1,2,3,4,5,6,7,8)
179
pt1 = pt1 + pt2:        (11,13,15,17,19,21,23,25)
180
pt1 = pt1 - pt2:        (1,2,3,4,5,6,7,8)
181
================================================
182
Testing tuple<3,string>
183
================================================
184
str: (str0,str1,str2)

powered by: WebSVN 2.1.0

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