1 export function w $slt(w %x, w %y) {
7 export function w $sle(w %x, w %y) {
13 export function w $sgt(w %x, w %y) {
19 export function w $sge(w %x, w %y) {
25 export function w $ult(w %x, w %y) {
31 export function w $ule(w %x, w %y) {
37 export function w $ugt(w %x, w %y) {
43 export function w $uge(w %x, w %y) {
49 export function w $eq(w %x, w %y) {
55 export function w $ne(w %x, w %y) {
63 # extern int slt(int, int);
64 # extern int sle(int, int);
65 # extern int sgt(int, int);
66 # extern int sge(int, int);
67 # extern int ult(unsigned, unsigned);
68 # extern int ule(unsigned, unsigned);
69 # extern int ugt(unsigned, unsigned);
70 # extern int uge(unsigned, unsigned);
71 # extern int eq(unsigned, unsigned);
72 # extern int ne(unsigned, unsigned);
74 # /* LessThan Equal GreaterThan */
75 # return !slt(-1, 0) + slt(0, 0) + slt(0, -1)
76 # + !sle(-1, 0) + !sle(0, 0) + sle(0, -1)
77 # + sgt(-1, 0) + sgt(0, 0) + !sgt(0, -1)
78 # + sge(-1, 0) + !sge(0, 0) + !sge(0, -1)
79 # + !ult(0, -1) + ult(0, 0) + ult(-1, 0)
80 # + !ule(0, -1) + !ule(0, 0) + ule(-1, 0)
81 # + ugt(0, -1) + ugt(0, 0) + !ugt(-1, 0)
82 # + uge(0, -1) + !uge(0, 0) + !uge(-1, 0)
83 # + eq(0, 1) + !eq(0, 0) + eq(1, 0)
84 # + !ne(0, 1) + ne(0, 0) + !ne(1, 0)