Conversation
integration_tests/CMakeLists.txt
Outdated
| # Intrinsic Functions | ||
| RUN(NAME intrinsics_01 LABELS cpython llvm NOFAST) # any | ||
| RUN(NAME intrinsics_02 LABELS cpython llvm c) # floordiv | ||
| RUN(NAME intrinsics_03 LABELS llvm) # lshift |
There was a problem hiding this comment.
| RUN(NAME intrinsics_03 LABELS llvm) # lshift | |
| RUN(NAME intrinsics_03 LABELS cpython llvm) # lshift |
This verifies that the test works with python as well.
There was a problem hiding this comment.
Please check the comment below: #2556 (comment)
Thirumalai-Shaktivel
left a comment
There was a problem hiding this comment.
Looks good, I have left some comments.
|
Please mark this PR ready for review once it is ready. |
|
The test fails for cpython, may I please know the reason. The error is: The file runs when I do Do I need to make more additions to some files? |
|
It fails because, python doesn't have builtin lshift support. I think it needs to be imported from the operator module, see: https://docs.python.org/3/library/operator.html#operator.lshift. Something like: from operator import lshift
print(lshift(x, y))Does |
Yes, |
I want lshift to be imported only for the python test. For LPython's implementation, I want the control to be redirected to my intrinsic function. How can I achieve this? |
I thought this would be a good one to get started with LPython implementations.
Reference: https://docs.python.org/3/library/operator.html#operator.lshift