Add missing test from d6eb2b02.

pull/1273/head
whitequark 2019-02-10 07:25:48 +00:00
parent 01c3000ef3
commit 0a84dd38c1
1 changed files with 8 additions and 0 deletions

View File

@ -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)