Skip to content

Commit

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

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

#include "clad/Differentiator/Differentiator.h"

Expand All @@ -18,7 +17,7 @@ double runningSum(float* f, int n) {

//CHECK: void runningSum_grad(float *f, int n, clad::array_ref<float> _d_f, clad::array_ref<int> _d_n, double &_final_error) {
//CHECK-NEXT: double _d_sum = 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<double> _t1 = {};
Expand Down Expand Up @@ -59,10 +58,10 @@ double mulSum(float* a, float* b, int n) {

//CHECK: void mulSum_grad(float *a, float *b, int n, clad::array_ref<float> _d_a, clad::array_ref<float> _d_b, clad::array_ref<int> _d_n, double &_final_error) {
//CHECK-NEXT: double _d_sum = 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<unsigned long> _t1 = {};
//CHECK-NEXT: clad::tape<unsigned {{int|long}}> _t1 = {};
//CHECK-NEXT: clad::tape<int> _t2 = {};
//CHECK-NEXT: int _d_j = 0;
//CHECK-NEXT: int j = 0;
Expand All @@ -71,7 +70,7 @@ double mulSum(float* a, float* b, int n) {
//CHECK-NEXT: _t0 = 0;
//CHECK-NEXT: for (i = 0; i < n; i++) {
//CHECK-NEXT: _t0++;
//CHECK-NEXT: clad::push(_t1, 0UL);
//CHECK-NEXT: clad::push(_t1, {{0U|0UL}});
//CHECK-NEXT: for (clad::push(_t2, j) , j = 0; j < n; j++) {
//CHECK-NEXT: clad::back(_t1)++;
//CHECK-NEXT: clad::push(_t3, sum);
Expand Down Expand Up @@ -118,7 +117,7 @@ double divSum(float* a, float* b, int n) {

//CHECK: void divSum_grad(float *a, float *b, int n, clad::array_ref<float> _d_a, clad::array_ref<float> _d_b, clad::array_ref<int> _d_n, double &_final_error) {
//CHECK-NEXT: double _d_sum = 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<double> _t1 = {};
Expand Down

0 comments on commit 130b8a2

Please sign in to comment.