1 # floating point casts and conversions
4 function s $fneg(s %f) {
7 %b1 =w xor 2147483648, %b0
13 function d $ftrunc(d %f) {
21 # extern float fneg(float);
22 # extern double ftrunc(double);
24 # if (fneg(1.23f) != -1.23f) return 1;
25 # if (ftrunc(3.1415) != 3.0) return 2;
26 # if (ftrunc(-1.234) != -1.0) return 3;