Skip to content

Commit

Permalink
Fix Hessian/BuiltinDerivatives on i586
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed Mar 19, 2024
1 parent e0f6db6 commit 101f8da
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/Hessian/BuiltinDerivatives.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <math.h>
Expand Down Expand Up @@ -83,7 +82,7 @@ float f1(float x) {
// CHECK-NEXT: }

// CHECK: void f1_hessian(float x, clad::array_ref<float> 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) {
Expand Down Expand Up @@ -130,7 +129,7 @@ float f2(float x) {
// CHECK-NEXT: }

// CHECK: void f2_hessian(float x, clad::array_ref<float> 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: }


Expand Down Expand Up @@ -175,7 +174,7 @@ float f3(float x) {
// CHECK-NEXT: }

// CHECK: void f3_hessian(float x, clad::array_ref<float> 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: }


Expand Down Expand Up @@ -264,7 +263,7 @@ float f4(float x) {
// CHECK-NEXT: }

// CHECK: void f4_hessian(float x, clad::array_ref<float> 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: }


Expand Down Expand Up @@ -298,7 +297,7 @@ float f5(float x) {
// CHECK-NEXT: }

// CHECK: void f5_hessian(float x, clad::array_ref<float> 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: }


Expand Down Expand Up @@ -367,8 +366,8 @@ float f6(float x, float y) {
// CHECK-NEXT: }

// CHECK: void f6_hessian(float x, float y, clad::array_ref<float> 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: }


Expand Down

0 comments on commit 101f8da

Please sign in to comment.