We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987b08b commit 8635416Copy full SHA for 8635416
integration_tests/CMakeLists.txt
@@ -816,6 +816,7 @@ RUN(NAME callback_04 IMPORT_PATH .. LABELS cpython)
816
# Intrinsic Functions
817
RUN(NAME intrinsics_01 LABELS cpython llvm NOFAST) # any
818
RUN(NAME intrinsics_02 LABELS cpython llvm c) # floordiv
819
+RUN(NAME intrinsics_03 LABELS llvm) # lshift
820
821
# lpython decorator
822
RUN(NAME lpython_decorator_01 LABELS cpython)
integration_tests/intrinsics_03.py
@@ -0,0 +1,12 @@
1
+from lpython import i32
2
+
3
+a : i32
4
+b : i32
5
6
+a = 5
7
+b = 2
8
+print(lshift(a,b))
9
+assert(lshift(a,b) == a<<b)
10
11
+print(lshift(5,2))
12
+assert(lshift(5,2) == 5<<2)
0 commit comments