Changeset 0b3cdad


Ignore:
Timestamp:
Dec 29, 2019, 9:40:52 PM (22 months ago)
Author:
Dmitry Kobets <dkobets@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
94df8de
Parents:
596fc4ad
Message:

Add missing right-bitshift operator tests for vec2

Location:
tests/vector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/vector/.expect/vec2_int.txt

    r596fc4ad r0b3cdad  
    4646?<<?(vec)<32,4>
    4747?<<=?(vec)<32,4>
     48?>>?(int)<1,0>
     49?>>=?(int)<1,0>
     50?>>?(vec)<2,1>
     51?>>=?(vec)<2,1>
    4852~?<-6,-3>
    4953dot_1:0
  • tests/vector/vec2_int.cfa

    r596fc4ad r0b3cdad  
    153153    }
    154154
     155    // >>
     156    {
     157        vec2(int) u = {2, 1};
     158        sout | "?>>?(int)" | (u >> 1);
     159        sout | "?>>=?(int)" | (u >>= 1);
     160    }
     161    {
     162        vec2(int) u = {5, 7};
     163        vec2(int) v = {1, 2};
     164        sout | "?>>?(vec)" | (u >> v);
     165        sout | "?>>=?(vec)" | (u >>= v);
     166    }
     167
    155168    // ~
    156169    {
Note: See TracChangeset for help on using the changeset viewer.