X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fbitnot.qc;h=54b6ecb30f7a2f4fe07e8cb84e20d6762a7a6e79;hb=53e9ed0d9638b911d377df28505f09c0bee62a35;hp=c6e875d2170a54229572b395d63725a9e5bb4e0d;hpb=c41ef65cc92193e9b685cc123ca9d4de9d142756;p=xonotic%2Fgmqcc.git diff --git a/tests/bitnot.qc b/tests/bitnot.qc index c6e875d..54b6ecb 100644 --- a/tests/bitnot.qc +++ b/tests/bitnot.qc @@ -3,12 +3,35 @@ void main() { float b; b = 1; float c; c = 1; float d; d = 1; + vector e; e = '1 1 1'; + vector f; f = '1 1 1'; +#ifdef __STD_FTEQCC__ a &~= 1; // 0 +#else + a &= ~1; // 0 +#endif +#ifdef __STD_GMQCC__ b &= ~1; // 0 c &= ~d; // 0 +#else + b &~= 1; // 0 + c &~= 1; // 0 +#endif +#ifdef __STD_FTEQCC__ + f &~= e; // '0 0 0' +#else + f &= ~e; // '0 0 0' +#endif +#ifdef __STD_GMQCC__ + e &= ~e; // '0 0 0' +#else + e &~= e; // '0 0 0' +#endif print("a: ", ftos(a), "\nb: ", ftos(b), "\nc: ", ftos(c), "\n"); + print("e: ", vtos(e), "\n"); + print("f: ", vtos(f), "\n"); }