| 1 |
// PERMUTE_ARGS: |
| 2 |
// REQUIRED_ARGS: -O |
| 3 |
// POST_SCRIPT: compilable/extra-files/objdump-postscript.sh |
| 4 |
// only testing on SYSV-ABI, but backend code is identical across platforms |
| 5 |
// DISABLED: win32 win64 osx linux32 freebsd32 freebsd64 openbsd32 openbsd64 |
| 6 |
|
| 7 |
bool test_ltz(ubyte x) { return x < 0; } |
| 8 |
bool test_lez(ubyte x) { return x <= 0; } |
| 9 |
bool test_eqz(ubyte x) { return x == 0; } |
| 10 |
bool test_nez(ubyte x) { return x != 0; } |
| 11 |
bool test_gez(ubyte x) { return x >= 0; } |
| 12 |
bool test_gtz(ubyte x) { return x > 0; } |
| 13 |
|
| 14 |
bool test_ltz(byte x) { return x < 0; } |
| 15 |
bool test_lez(byte x) { return x <= 0; } |
| 16 |
bool test_eqz(byte x) { return x == 0; } |
| 17 |
bool test_nez(byte x) { return x != 0; } |
| 18 |
bool test_gez(byte x) { return x >= 0; } |
| 19 |
bool test_gtz(byte x) { return x > 0; } |
| 20 |
|
| 21 |
bool test_ltz(ushort x) { return x < 0; } |
| 22 |
bool test_lez(ushort x) { return x <= 0; } |
| 23 |
bool test_eqz(ushort x) { return x == 0; } |
| 24 |
bool test_nez(ushort x) { return x != 0; } |
| 25 |
bool test_gez(ushort x) { return x >= 0; } |
| 26 |
bool test_gtz(ushort x) { return x > 0; } |
| 27 |
|
| 28 |
bool test_ltz(short x) { return x < 0; } |
| 29 |
bool test_lez(short x) { return x <= 0; } |
| 30 |
bool test_eqz(short x) { return x == 0; } |
| 31 |
bool test_nez(short x) { return x != 0; } |
| 32 |
bool test_gez(short x) { return x >= 0; } |
| 33 |
bool test_gtz(short x) { return x > 0; } |
| 34 |
|
| 35 |
bool test_ltz(uint x) { return x < 0; } |
| 36 |
bool test_lez(uint x) { return x <= 0; } |
| 37 |
bool test_eqz(uint x) { return x == 0; } |
| 38 |
bool test_nez(uint x) { return x != 0; } |
| 39 |
bool test_gez(uint x) { return x >= 0; } |
| 40 |
bool test_gtz(uint x) { return x > 0; } |
| 41 |
|
| 42 |
bool test_ltz(int x) { return x < 0; } |
| 43 |
bool test_lez(int x) { return x <= 0; } |
| 44 |
bool test_eqz(int x) { return x == 0; } |
| 45 |
bool test_nez(int x) { return x != 0; } |
| 46 |
bool test_gez(int x) { return x >= 0; } |
| 47 |
bool test_gtz(int x) { return x > 0; } |
| 48 |
|
| 49 |
bool test_ltz(ulong x) { return x < 0; } |
| 50 |
bool test_lez(ulong x) { return x <= 0; } |
| 51 |
bool test_eqz(ulong x) { return x == 0; } |
| 52 |
bool test_nez(ulong x) { return x != 0; } |
| 53 |
bool test_gez(ulong x) { return x >= 0; } |
| 54 |
bool test_gtz(ulong x) { return x > 0; } |
| 55 |
|
| 56 |
bool test_ltz(long x) { return x < 0; } |
| 57 |
bool test_lez(long x) { return x <= 0; } |
| 58 |
bool test_eqz(long x) { return x == 0; } |
| 59 |
bool test_nez(long x) { return x != 0; } |
| 60 |
bool test_gez(long x) { return x >= 0; } |
| 61 |
bool test_gtz(long x) { return x > 0; } |
| 62 |
|
| 63 |
/* ----------------------------------- */ |
| 64 |
|
| 65 |
bool test_lt(ubyte x, ubyte y) { return x < y; } |
| 66 |
bool test_le(ubyte x, ubyte y) { return x <= y; } |
| 67 |
bool test_eq(ubyte x, ubyte y) { return x == y; } |
| 68 |
bool test_ne(ubyte x, ubyte y) { return x != y; } |
| 69 |
bool test_ge(ubyte x, ubyte y) { return x >= y; } |
| 70 |
bool test_gt(ubyte x, ubyte y) { return x > y; } |
| 71 |
|
| 72 |
bool test_lt(byte x, byte y) { return x < y; } |
| 73 |
bool test_le(byte x, byte y) { return x <= y; } |
| 74 |
bool test_eq(byte x, byte y) { return x == y; } |
| 75 |
bool test_ne(byte x, byte y) { return x != y; } |
| 76 |
bool test_ge(byte x, byte y) { return x >= y; } |
| 77 |
bool test_gt(byte x, byte y) { return x > y; } |
| 78 |
|
| 79 |
bool test_lt(ushort x, ushort y) { return x < y; } |
| 80 |
bool test_le(ushort x, ushort y) { return x <= y; } |
| 81 |
bool test_eq(ushort x, ushort y) { return x == y; } |
| 82 |
bool test_ne(ushort x, ushort y) { return x != y; } |
| 83 |
bool test_ge(ushort x, ushort y) { return x >= y; } |
| 84 |
bool test_gt(ushort x, ushort y) { return x > y; } |
| 85 |
|
| 86 |
bool test_lt(short x, short y) { return x < y; } |
| 87 |
bool test_le(short x, short y) { return x <= y; } |
| 88 |
bool test_eq(short x, short y) { return x == y; } |
| 89 |
bool test_ne(short x, short y) { return x != y; } |
| 90 |
bool test_ge(short x, short y) { return x >= y; } |
| 91 |
bool test_gt(short x, short y) { return x > y; } |
| 92 |
|
| 93 |
bool test_lt(uint x, uint y) { return x < y; } |
| 94 |
bool test_le(uint x, uint y) { return x <= y; } |
| 95 |
bool test_eq(uint x, uint y) { return x == y; } |
| 96 |
bool test_ne(uint x, uint y) { return x != y; } |
| 97 |
bool test_ge(uint x, uint y) { return x >= y; } |
| 98 |
bool test_gt(uint x, uint y) { return x > y; } |
| 99 |
|
| 100 |
bool test_lt(int x, int y) { return x < y; } |
| 101 |
bool test_le(int x, int y) { return x <= y; } |
| 102 |
bool test_eq(int x, int y) { return x == y; } |
| 103 |
bool test_ne(int x, int y) { return x != y; } |
| 104 |
bool test_ge(int x, int y) { return x >= y; } |
| 105 |
bool test_gt(int x, int y) { return x > y; } |
| 106 |
|
| 107 |
bool test_lt(ulong x, ulong y) { return x < y; } |
| 108 |
bool test_le(ulong x, ulong y) { return x <= y; } |
| 109 |
bool test_eq(ulong x, ulong y) { return x == y; } |
| 110 |
bool test_ne(ulong x, ulong y) { return x != y; } |
| 111 |
bool test_ge(ulong x, ulong y) { return x >= y; } |
| 112 |
bool test_gt(ulong x, ulong y) { return x > y; } |
| 113 |
|
| 114 |
bool test_lt(long x, long y) { return x < y; } |
| 115 |
bool test_le(long x, long y) { return x <= y; } |
| 116 |
bool test_eq(long x, long y) { return x == y; } |
| 117 |
bool test_ne(long x, long y) { return x != y; } |
| 118 |
bool test_ge(long x, long y) { return x >= y; } |
| 119 |
bool test_gt(long x, long y) { return x > y; } |
| 120 |
|
| 121 |
bool test_lt(float x, float y) { return x < y; } |
| 122 |
bool test_le(float x, float y) { return x <= y; } |
| 123 |
bool test_eq(float x, float y) { return x == y; } |
| 124 |
bool test_ne(float x, float y) { return x != y; } |
| 125 |
bool test_ge(float x, float y) { return x >= y; } |
| 126 |
bool test_gt(float x, float y) { return x > y; } |
| 127 |
|
| 128 |
bool test_lt(double x, double y) { return x < y; } |
| 129 |
bool test_le(double x, double y) { return x <= y; } |
| 130 |
bool test_eq(double x, double y) { return x == y; } |
| 131 |
bool test_ne(double x, double y) { return x != y; } |
| 132 |
bool test_ge(double x, double y) { return x >= y; } |
| 133 |
bool test_gt(double x, double y) { return x > y; } |