Mercurial > octave-nkf
comparison test/jit.tst @ 19685:885d38747cd5
Fix failing JIT tests (bug #41312).
* pt-jit.cc (jit_convert::get_variable): Search for function name if vname is
not a variable.
* test/jit.tst: Make two tests with complex inputs %!xtest because support for
complex function prototypes does not exist.
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Mon, 27 Jan 2014 15:52:57 +0100 |
parents | 0e1f5a750d00 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
19684:50f14692e33b | 19685:885d38747cd5 |
---|---|
534 %! endfor | 534 %! endfor |
535 %! assert (a, 2000); | 535 %! assert (a, 2000); |
536 %! assert (b, 1); | 536 %! assert (b, 1); |
537 %! assert (jit_failure_count, 0); | 537 %! assert (jit_failure_count, 0); |
538 | 538 |
539 %!testif HAVE_LLVM | 539 %!xtest |
540 %! ## FIXME: No support for functions with complex input prototypes | |
541 %! ## testif HAVE_LLVM | |
540 %! jit_failure_count (0) | 542 %! jit_failure_count (0) |
541 %! a = [1+1i 1+2i]; | 543 %! a = [1+1i 1+2i]; |
542 %! b = 0; | 544 %! b = 0; |
543 %! while (1) | 545 %! while (1) |
544 %! b = a(1); | 546 %! b = a(1); |
563 %! assert (jit_failure_count, 1); | 565 %! assert (jit_failure_count, 1); |
564 | 566 |
565 %!shared id | 567 %!shared id |
566 %! id = @(x) x; | 568 %! id = @(x) x; |
567 | 569 |
568 %!testif HAVE_LLVM | 570 %!xtest |
571 %! ## FIXME: No support for functions with complex input prototypes | |
572 %! ## testif HAVE_LLVM | |
569 %! jit_failure_count (0) | 573 %! jit_failure_count (0) |
570 %! assert (id (1), 1); | 574 %! assert (id (1), 1); |
571 %! assert (id (1+1i), 1+1i); | 575 %! assert (id (1+1i), 1+1i); |
572 %! assert (id (1, 2), 1); | 576 %! assert (id (1, 2), 1); |
573 %! assert (jit_failure_count, 0); | 577 %! assert (jit_failure_count, 0); |