summaryrefslogtreecommitdiff
path: root/src/systemc/tests/systemc/misc/unit/data/user_guide/ch9/int_datatype/golden/int_datatype.log
blob: dcaba007d1ce8c8c0ef063d91f4d3987f272d8da (plain)
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
SystemC Simulation
int 	<=	 int
---------------------
A = 5		 5
B = -12		 -12

op1 	 operator 	 op2 	 result  [All operands are int]
----------------------------------------------------------------
13	    * 		 3	 = 39
13	    / 		 3	 = 4
13	    % 		 3	 = 1
13	    + 		 3	 = 16
13	    - 		 3	 = 10
!(13) 				 = 0
13	    && 		 3	 = 1
13	    || 		 3	 = 1
13	    < 		 3	 = 0
13	    <= 		 3	 = 0
13	    > 		 3	 = 1
13	    >= 		 3	 = 1
13	    += 		 3	 = 16
13	    -= 		 3	 = 10
13	    *= 		 3	 = 39
13	    /= 		 3	 = 4
13	    %= 		 3	 = 1
13	    <<=		 3	 = 104
13	    >>=		 3	 = 1
13	    &= 		 3	 = 1
13	    ^= 		 3	 = 14
13	    |= 		 3	 = 15
	    ()++ 	 3	 = 3
	    ++() 	 3	 = 4
	    ()-- 	 3	 = 3
	    --() 	 3	 = 2
13	    > ?: 	 3	 = 1
13	    < ?: 	 3	 = 0
13	    , 		 3	 = 3
~(13) 				 = 4294967282
13	    << 		 3	 = 104
13	    >> 		 3	 = 1
13	    & 		 3	 = 1
13	    ^ 		 3	 = 14
13	    | 		 3	 = 15
13	    == 		 3	 -> false
13	    != 		 3	 -> true
0	    = 		 0