From 1fa223aba4ed19a02dad00ec256c96c8bb390748 Mon Sep 17 00:00:00 2001 From: Mihail Mihov Date: Tue, 19 Mar 2024 19:16:57 +0200 Subject: [PATCH] Fix Misc/RunDemos test --- test/Misc/RunDemos.C | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/Misc/RunDemos.C b/test/Misc/RunDemos.C index 6d81abf32..7e924c3e8 100644 --- a/test/Misc/RunDemos.C +++ b/test/Misc/RunDemos.C @@ -5,7 +5,6 @@ // RUN: %cladclang %S/../../demos/ComputerGraphics/smallpt/SmallPT.cpp -I%S/../../include 2>&1 // XFAIL: asserts -// XFAIL: target={{i586.*}} //-----------------------------------------------------------------------------/ // Demo: Gradient.cpp @@ -109,7 +108,7 @@ //CHECK_FLOAT_SUM: void vanillaSum_grad(float x, unsigned int n, clad::array_ref _d_x, clad::array_ref _d_n, double &_final_error) { //CHECK_FLOAT_SUM: float _d_sum = 0; -//CHECK_FLOAT_SUM: unsigned long _t0; +//CHECK_FLOAT_SUM: unsigned {{int|long}} _t0; //CHECK_FLOAT_SUM: unsigned int _d_i = 0; //CHECK_FLOAT_SUM: unsigned int i = 0; //CHECK_FLOAT_SUM: clad::tape _t1 = {}; @@ -285,8 +284,8 @@ //-----------------------------------------------------------------------------/ // RUN: %cladclang %S/../../demos/VectorForwardMode.cpp -I%S/../../include -oVectorForwardMode.out 2>&1 | FileCheck -check-prefix CHECK_VECTOR_FORWARD_MODE %s // CHECK_VECTOR_FORWARD_MODE: void weighted_sum_dvec_0_1(double *arr, double *weights, int n, clad::array_ref _d_arr, clad::array_ref _d_weights) { -// CHECK_VECTOR_FORWARD_MODE-NEXT unsigned long indepVarCount = _d_arr.size() + _d_weights.size(); -// CHECK_VECTOR_FORWARD_MODE-NEXT clad::matrix _d_vector_arr = clad::identity_matrix(_d_arr.size(), indepVarCount, 0UL); +// CHECK_VECTOR_FORWARD_MODE-NEXT unsigned {{int|long}} indepVarCount = _d_arr.size() + _d_weights.size(); +// CHECK_VECTOR_FORWARD_MODE-NEXT clad::matrix _d_vector_arr = clad::identity_matrix(_d_arr.size(), indepVarCount, {{0U|0UL}}); // CHECK_VECTOR_FORWARD_MODE-NEXT clad::matrix _d_vector_weights = clad::identity_matrix(_d_weights.size(), indepVarCount, _d_arr.size()); // CHECK_VECTOR_FORWARD_MODE-NEXT clad::array _d_vector_n = clad::zero_vector(indepVarCount); // CHECK_VECTOR_FORWARD_MODE-NEXT clad::array _d_vector_res(clad::array(indepVarCount, 0)); @@ -300,7 +299,7 @@ // CHECK_VECTOR_FORWARD_MODE-NEXT } // CHECK_VECTOR_FORWARD_MODE-NEXT { // CHECK_VECTOR_FORWARD_MODE-NEXT clad::array _d_vector_return(clad::array(indepVarCount, _d_vector_res)); -// CHECK_VECTOR_FORWARD_MODE-NEXT _d_arr = _d_vector_return.slice(0UL, _d_arr.size()); +// CHECK_VECTOR_FORWARD_MODE-NEXT _d_arr = _d_vector_return.slice({{0U|0UL}}, _d_arr.size()); // CHECK_VECTOR_FORWARD_MODE-NEXT _d_weights = _d_vector_return.slice(_d_arr.size(), _d_weights.size()); // CHECK_VECTOR_FORWARD_MODE-NEXT return; // CHECK_VECTOR_FORWARD_MODE-NEXT }