From 101f8da87d5b61456c9ba9e1985dd639d7503309 Mon Sep 17 00:00:00 2001 From: Mihail Mihov Date: Tue, 19 Mar 2024 19:00:36 +0200 Subject: [PATCH] Fix Hessian/BuiltinDerivatives on i586 --- test/Hessian/BuiltinDerivatives.C | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/test/Hessian/BuiltinDerivatives.C b/test/Hessian/BuiltinDerivatives.C index dc48fcc21..12a3d9970 100644 --- a/test/Hessian/BuiltinDerivatives.C +++ b/test/Hessian/BuiltinDerivatives.C @@ -5,7 +5,6 @@ //CHECK-NOT: {{.*error|warning|note:.*}} -// XFAIL: target={{i586.*}} #include "clad/Differentiator/Differentiator.h" #include @@ -83,7 +82,7 @@ float f1(float x) { // CHECK-NEXT: } // CHECK: void f1_hessian(float x, clad::array_ref hessianMatrix) { -// CHECK-NEXT: f1_darg0_grad(x, hessianMatrix.slice(0UL, 1UL)); +// CHECK-NEXT: f1_darg0_grad(x, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}})); // CHECK-NEXT: } float f2(float x) { @@ -130,7 +129,7 @@ float f2(float x) { // CHECK-NEXT: } // CHECK: void f2_hessian(float x, clad::array_ref hessianMatrix) { -// CHECK-NEXT: f2_darg0_grad(x, hessianMatrix.slice(0UL, 1UL)); +// CHECK-NEXT: f2_darg0_grad(x, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}})); // CHECK-NEXT: } @@ -175,7 +174,7 @@ float f3(float x) { // CHECK-NEXT: } // CHECK: void f3_hessian(float x, clad::array_ref hessianMatrix) { -// CHECK-NEXT: f3_darg0_grad(x, hessianMatrix.slice(0UL, 1UL)); +// CHECK-NEXT: f3_darg0_grad(x, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}})); // CHECK-NEXT: } @@ -264,7 +263,7 @@ float f4(float x) { // CHECK-NEXT: } // CHECK: void f4_hessian(float x, clad::array_ref hessianMatrix) { -// CHECK-NEXT: f4_darg0_grad(x, hessianMatrix.slice(0UL, 1UL)); +// CHECK-NEXT: f4_darg0_grad(x, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}})); // CHECK-NEXT: } @@ -298,7 +297,7 @@ float f5(float x) { // CHECK-NEXT: } // CHECK: void f5_hessian(float x, clad::array_ref hessianMatrix) { -// CHECK-NEXT: f5_darg0_grad(x, hessianMatrix.slice(0UL, 1UL)); +// CHECK-NEXT: f5_darg0_grad(x, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}})); // CHECK-NEXT: } @@ -367,8 +366,8 @@ float f6(float x, float y) { // CHECK-NEXT: } // CHECK: void f6_hessian(float x, float y, clad::array_ref hessianMatrix) { -// CHECK-NEXT: f6_darg0_grad(x, y, hessianMatrix.slice(0UL, 1UL), hessianMatrix.slice(1UL, 1UL)); -// CHECK-NEXT: f6_darg1_grad(x, y, hessianMatrix.slice(2UL, 1UL), hessianMatrix.slice(3UL, 1UL)); +// CHECK-NEXT: f6_darg0_grad(x, y, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}}), hessianMatrix.slice({{1U|1UL}}, {{1U|1UL}})); +// CHECK-NEXT: f6_darg1_grad(x, y, hessianMatrix.slice({{2U|2UL}}, {{1U|1UL}}), hessianMatrix.slice({{3U|3UL}}, {{1U|1UL}})); // CHECK-NEXT: }