From 9a1bd66d2cb47d90ba1c220be8d49351689cec3a Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 14 May 2018 15:56:19 +0000 Subject: [PATCH] compiler: add test for int64(round(1.0)). --- artiq/test/lit/inferencer/cast.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/test/lit/inferencer/cast.py b/artiq/test/lit/inferencer/cast.py index 0f9c4c8d9..be2ddbf4a 100644 --- a/artiq/test/lit/inferencer/cast.py +++ b/artiq/test/lit/inferencer/cast.py @@ -1,5 +1,8 @@ # RUN: %python -m artiq.compiler.testbench.inferencer +mono %s >%t # RUN: OutputCheck %s --file-to-check=%t -# CHECK-L: numpy.int64 +# CHECK-L: 2:numpy.int64 int64(2)**32 + +# CHECK-L: round:(1.0:float):numpy.int64 +int64(round(1.0))