projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4d8af
)
Fix line so that 80 characters per line is kept and removed a comment
author
R Veera Kumar
<vklr@vkten.in>
Wed, 24 Nov 2021 23:47:35 +0000
(
05:17
+0530)
committer
R Veera Kumar
<vklr@vkten.in>
Wed, 24 Nov 2021 23:47:35 +0000
(
05:17
+0530)
src/openpower/test/alu/alu_cases.py
patch
|
blob
|
history
diff --git
a/src/openpower/test/alu/alu_cases.py
b/src/openpower/test/alu/alu_cases.py
index 8dcbe2e559798b315a5ce360ff19a215accc2a21..4d93fe9f507472b350b2f26aaf696b76ea0af333 100644
(file)
--- a/
src/openpower/test/alu/alu_cases.py
+++ b/
src/openpower/test/alu/alu_cases.py
@@
-302,9
+302,9
@@
class ALUTestCase(TestAccumulatorBase):
# (if it overflows, we don't care, because this is not addeo)
result = 1 + initial_regs[6] + initial_regs[7]
carry_out = result & (1<<64) != 0 # detect 65th bit as carry-out?
- carry_out32 = ((initial_regs[6] & 0xffff_ffff) + (initial_regs[7] & 0xffff_ffff)) & (1<<32)
+ carry_out32 = ((initial_regs[6] & 0xffff_ffff) + \
+ (initial_regs[7] & 0xffff_ffff)) & (1<<32)
result = result & ((1<<64)-1) # round
- # TODO: calculate CR0
eq = 0
gt = 0
le = 0