Skip to content

Commit

Permalink
Fix Gradient/FunctionCalls test
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed Mar 19, 2024
1 parent e38ef2f commit e19da9c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/Gradient/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 "clad/Differentiator/Differentiator.h"

Expand Down Expand Up @@ -192,7 +191,7 @@ float sum(double* arr, int n) {

// CHECK: void sum_pullback(double *arr, int n, float _d_y, clad::array_ref<double> _d_arr, clad::array_ref<int> _d_n) {
// CHECK-NEXT: float _d_res = 0;
// CHECK-NEXT: unsigned long _t0;
// CHECK-NEXT: unsigned {{int|long}} _t0;
// CHECK-NEXT: int _d_i = 0;
// CHECK-NEXT: int i = 0;
// CHECK-NEXT: clad::tape<float> _t1 = {};
Expand Down Expand Up @@ -251,7 +250,7 @@ double fn4(double* arr, int n) {
// CHECK: void fn4_grad(double *arr, int n, clad::array_ref<double> _d_arr, clad::array_ref<int> _d_n) {
// CHECK-NEXT: double _d_res = 0;
// CHECK-NEXT: double _t0;
// CHECK-NEXT: unsigned long _t1;
// CHECK-NEXT: unsigned {{int|long}} _t1;
// CHECK-NEXT: int _d_i = 0;
// CHECK-NEXT: int i = 0;
// CHECK-NEXT: clad::tape<double> _t2 = {};
Expand Down Expand Up @@ -643,8 +642,8 @@ double fn13(double* x, const double* w) {
}

// CHECK: void fn13_grad_0(double *x, const double *w, clad::array_ref<double> _d_x) {
// CHECK-NEXT: clad::array<double> _d_wCopy(2UL);
// CHECK-NEXT: unsigned long _t0;
// CHECK-NEXT: clad::array<double> _d_wCopy({{2U|2UL}});
// CHECK-NEXT: unsigned {{int|long}} _t0;
// CHECK-NEXT: std::size_t _d_i = 0;
// CHECK-NEXT: std::size_t i = 0;
// CHECK-NEXT: clad::tape<double> _t1 = {};
Expand Down Expand Up @@ -845,4 +844,4 @@ int main() {
TEST2(fn15, 6, -2) // CHECK-EXEC: {1.00, 1.00}
INIT(fn16);
TEST2(fn16, 12, 8) // CHECK-EXEC: {8.00, 8.00}
}
}

0 comments on commit e19da9c

Please sign in to comment.