Skip to content

Commit

Permalink
Fix Jacobian/FunctionCalls test
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed Mar 19, 2024
1 parent 1fa223a commit f12263a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/Jacobian/FunctionCalls.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: ./FunctionCalls.out | FileCheck -check-prefix=CHECK-EXEC %s

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

#include <cmath>
#include "clad/Differentiator/Differentiator.h"
Expand All @@ -23,15 +22,15 @@ void fn1(double i, double j, double* output) {
// CHECK-NEXT: double _r2 = 0;
// CHECK-NEXT: double _r3 = 0;
// CHECK-NEXT: clad::custom_derivatives::pow_pullback(j, i, 1, &_r2, &_r3);
// CHECK-NEXT: jacobianMatrix[3UL] += _r2;
// CHECK-NEXT: jacobianMatrix[2UL] += _r3;
// CHECK-NEXT: jacobianMatrix[{{3U|3UL}}] += _r2;
// CHECK-NEXT: jacobianMatrix[{{2U|2UL}}] += _r3;
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: double _r0 = 0;
// CHECK-NEXT: double _r1 = 0;
// CHECK-NEXT: clad::custom_derivatives::pow_pullback(i, j, 1, &_r0, &_r1);
// CHECK-NEXT: jacobianMatrix[0UL] += _r0;
// CHECK-NEXT: jacobianMatrix[1UL] += _r1;
// CHECK-NEXT: jacobianMatrix[{{0U|0UL}}] += _r0;
// CHECK-NEXT: jacobianMatrix[{{1U|1UL}}] += _r1;
// CHECK-NEXT: }
// CHECK-NEXT: }

Expand Down Expand Up @@ -61,4 +60,4 @@ int main() {
INIT(fn1);

test<2>(DERIVED_FN(fn1), 3, 5); // CHECK-EXEC: {405.00, 266.96, 201.18, 75.00}
}
}

0 comments on commit f12263a

Please sign in to comment.