From a01c09c3934d3f859bf4bea6b4e583f25291b643 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 9 Apr 2020 15:43:09 -0400 Subject: Literal folding on other operators (#1314) * Fold prefix operators if they prefix an int literal. * Make test case a bit more convoluted. * Remove ++ and -- as not appropriate for folding of literals. * Set output buffer name. --- tests/compute/static-const-vector-array.slang.expected.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/compute/static-const-vector-array.slang.expected.txt (limited to 'tests/compute/static-const-vector-array.slang.expected.txt') diff --git a/tests/compute/static-const-vector-array.slang.expected.txt b/tests/compute/static-const-vector-array.slang.expected.txt new file mode 100644 index 000000000..54ecdf414 --- /dev/null +++ b/tests/compute/static-const-vector-array.slang.expected.txt @@ -0,0 +1,9 @@ +type: float +-0.267204 +0.348847 +0.588588 +1.398255 +1.590841 +0.495721 +1.252321 +0.171198 -- cgit v1.2.3