mirror of https://github.com/m-labs/artiq.git
Add missing test from d6eb2b02
.
This commit is contained in:
parent
01c3000ef3
commit
0a84dd38c1
|
@ -0,0 +1,8 @@
|
|||
# RUN: %python -m artiq.compiler.testbench.irgen %s >%t
|
||||
# RUN: OutputCheck %s --file-to-check=%t
|
||||
|
||||
# CHECK-L: %BLT.round = numpy.int64 builtin(round) float
|
||||
def frequency_to_ftw(frequency):
|
||||
return int64(round(1e-9*frequency))
|
||||
|
||||
frequency_to_ftw(1e9)
|
Loading…
Reference in New Issue