Changeset 474d610 for tests


Ignore:
Timestamp:
Apr 13, 2021, 6:57:29 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0effb6a
Parents:
e3cb4bf
Message:

add tests and expected output for integer log2 routines

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/math.nast.x64.txt

    re3cb4bf r474d610  
    17174 16
    1818log:0. 0. 0. 0.346574+0.785398i 0.346573590279973+0.785398163397448i 0.346573590279972655+0.78539816339744831i
     19log2:10 17 23
     20log2:10 17 23
     21log2:10 17 23
     22log2:10. 17. 23.
    1923log2:3. 3. 3.
    2024log10:2. 2. 2.
  • tests/math.cfa

    re3cb4bf r474d610  
    1010// Created On       : Fri Apr 22 14:59:21 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Feb 20 18:00:48 2021
    13 // Update Count     : 115
     12// Last Modified On : Tue Apr 13 17:28:58 2021
     13// Update Count     : 122
    1414//
    1515
     
    6969        sout | "log:" | log( 1.0F ) | log( 1.0D ) | log( 1.0L ) | nonl;
    7070        sout | log( 1.0F+1.0FI ) | log( 1.0D+1.0DI ) | log( 1.0DL+1.0LI );
     71        sout | "log2:" | log2( 1024 ) | log2( 2 \ 17u ) | log2( 2 \ 23u );
     72        sout | "log2:" | log2( 1024l ) | log2( 2l \ 17u ) | log2( 2l \ 23u );
     73        sout | "log2:" | log2( 1024ll ) | log2( 2ll \ 17u ) | log2( 2ll \ 23u );
     74        sout | "log2:" | log2( 1024l128 ) | log2( 2l128 \ 17u ) | log2( 2l128 \ 23u );
    7175        sout | "log2:" | log2( 8.0F ) | log2( 8.0D ) | log2( 8.0L );
    7276        sout | "log10:" | log10( 100.0F ) | log10( 100.0D ) | log10( 100.0L );
Note: See TracChangeset for help on using the changeset viewer.