llvm.org GIT mirror llvm / 6781cd2
Just documentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7149 91177308-0d34-0410-b5e6-96231b3b80d8 Vikram S. Adve 17 years ago
2 changed file(s) with 46 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ;; Date: Jul 8, 2003.
1 ;; From: test/Programs/MultiSource/Olden-perimeter
2 ;; Function: int %adj(uint %d.1, uint %ct.1)
3 ;;
4 ;; Errors: (1) cast-int-to-bool was being treated as a NOP (i.e., the int
5 ;; register was treated as effectively true if non-zero).
6 ;; This cannot be used for later boolean operations.
7 ;; (2) (A or NOT(B)) was being folded into A orn B, which is ok
8 ;; for bitwise operations but not booleans! For booleans,
9 ;; the result has to be compared with 0.
10 ;;
11 ;; LLC Output for the basic block (LLVM assembly is shown below):
12 ;;
13 ;; .L_adj_7_LL_4:
14 ;; sethi 0, %i0
15 ;; subcc %i1, 2, %g0
16 ;; move %icc, 1, %i0
17 ;; orn %i0, %i1, %i0
18 ;; ba .L_adj_7_LL_5
19 ;; nop
20 ;;
21
22
23 target endian = big
124 target pointersize = 64
225
0 ;; Date: Jul 8, 2003.
1 ;; From: test/Programs/MultiSource/Olden-perimeter
2 ;; Function: int %adj(uint %d.1, uint %ct.1)
3 ;;
4 ;; Errors: (1) cast-int-to-bool was being treated as a NOP (i.e., the int
5 ;; register was treated as effectively true if non-zero).
6 ;; This cannot be used for later boolean operations.
7 ;; (2) (A or NOT(B)) was being folded into A orn B, which is ok
8 ;; for bitwise operations but not booleans! For booleans,
9 ;; the result has to be compared with 0.
10 ;;
11 ;; LLC Output for the basic block (LLVM assembly is shown below):
12 ;;
13 ;; .L_adj_7_LL_4:
14 ;; sethi 0, %i0
15 ;; subcc %i1, 2, %g0
16 ;; move %icc, 1, %i0
17 ;; orn %i0, %i1, %i0
18 ;; ba .L_adj_7_LL_5
19 ;; nop
20 ;;
21
22
23 target endian = big
124 target pointersize = 64
225