1//Original:/testcases/core/c_alu2op_conv_toggle/c_alu2op_conv_toggle.dsp 2// Spec Reference: alu2op (~) toggle 3# mach: bfin 4 5.include "testutils.inc" 6 start 7 8 9 10imm32 r0, 0x00789abc; 11imm32 r1, 0x12345678; 12imm32 r2, 0x23456789; 13imm32 r3, 0x3456789a; 14imm32 r4, 0x856789ab; 15imm32 r5, 0x96789abc; 16imm32 r6, 0xa789abcd; 17imm32 r7, 0xb89abcde; 18R0 = ~ R0; 19R1 = ~ R0; 20R2 = ~ R0; 21R3 = ~ R0; 22R4 = ~ R0; 23R5 = ~ R0; 24R6 = ~ R0; 25R7 = ~ R0; 26CHECKREG r0, 0xFF876543; 27CHECKREG r1, 0x00789ABC; 28CHECKREG r2, 0x00789ABC; 29CHECKREG r3, 0x00789ABC; 30CHECKREG r4, 0x00789ABC; 31CHECKREG r5, 0x00789ABC; 32CHECKREG r6, 0x00789ABC; 33CHECKREG r7, 0x00789ABC; 34 35imm32 r0, 0x01230002; 36imm32 r1, 0x00374659; 37imm32 r2, 0x93456789; 38imm32 r3, 0xa456789a; 39imm32 r4, 0xb56789ab; 40imm32 r5, 0xc6789abc; 41imm32 r6, 0xd789abcd; 42imm32 r7, 0xe89abcde; 43R0 = ~ R1; 44R1 = ~ R1; 45R2 = ~ R1; 46R3 = ~ R1; 47R4 = ~ R1; 48R5 = ~ R1; 49R6 = ~ R1; 50R7 = ~ R1; 51CHECKREG r0, 0xFFC8B9A6; 52CHECKREG r1, 0xFFC8B9A6; 53CHECKREG r2, 0x00374659; 54CHECKREG r3, 0x00374659; 55CHECKREG r4, 0x00374659; 56CHECKREG r5, 0x00374659; 57CHECKREG r6, 0x00374659; 58CHECKREG r7, 0x00374659; 59 60imm32 r0, 0x10789abc; 61imm32 r1, 0x11345678; 62imm32 r2, 0x93156789; 63imm32 r3, 0xd451789a; 64imm32 r4, 0x856719ab; 65imm32 r5, 0x267891bc; 66imm32 r6, 0xa789ab1d; 67imm32 r7, 0x989ab1de; 68R0 = ~ R2; 69R1 = ~ R2; 70R2 = ~ R2; 71R3 = ~ R2; 72R4 = ~ R2; 73R5 = ~ R2; 74R6 = ~ R2; 75R7 = ~ R2; 76CHECKREG r0, 0x6CEA9876; 77CHECKREG r1, 0x6CEA9876; 78CHECKREG r2, 0x6CEA9876; 79CHECKREG r3, 0x93156789; 80CHECKREG r4, 0x93156789; 81CHECKREG r5, 0x93156789; 82CHECKREG r6, 0x93156789; 83CHECKREG r7, 0x93156789; 84 85imm32 r0, 0x21230002; 86imm32 r1, 0x02374659; 87imm32 r2, 0x93256789; 88imm32 r3, 0xa952789a; 89imm32 r4, 0xb59729ab; 90imm32 r5, 0xc67992bc; 91imm32 r6, 0xd7899b2d; 92imm32 r7, 0xe89ab9d2; 93R0 = ~ R3; 94R1 = ~ R3; 95R2 = ~ R3; 96R3 = ~ R3; 97R4 = ~ R3; 98R5 = ~ R3; 99R6 = ~ R3; 100R7 = ~ R3; 101CHECKREG r0, 0x56AD8765; 102CHECKREG r1, 0x56AD8765; 103CHECKREG r2, 0x56AD8765; 104CHECKREG r3, 0x56AD8765; 105CHECKREG r4, 0xA952789A; 106CHECKREG r5, 0xA952789A; 107CHECKREG r6, 0xA952789A; 108CHECKREG r7, 0xA952789A; 109 110imm32 r0, 0xa0789abc; 111imm32 r1, 0x1a345678; 112imm32 r2, 0x23a56789; 113imm32 r3, 0x645a789a; 114imm32 r4, 0x8667a9ab; 115imm32 r5, 0x96689abc; 116imm32 r6, 0xa787abad; 117imm32 r7, 0xb89a7cda; 118R0 = ~ R4; 119R1 = ~ R4; 120R2 = ~ R4; 121R3 = ~ R4; 122R4 = ~ R4; 123R5 = ~ R4; 124R6 = ~ R4; 125R7 = ~ R4; 126CHECKREG r0, 0x79985654; 127CHECKREG r1, 0x79985654; 128CHECKREG r2, 0x79985654; 129CHECKREG r3, 0x79985654; 130CHECKREG r4, 0x79985654; 131CHECKREG r5, 0x8667A9AB; 132CHECKREG r6, 0x8667A9AB; 133CHECKREG r7, 0x8667A9AB; 134 135imm32 r0, 0xf1230002; 136imm32 r1, 0x0f374659; 137imm32 r2, 0x93f56789; 138imm32 r3, 0xa45f789a; 139imm32 r4, 0xb567f9ab; 140imm32 r5, 0xc6789fbc; 141imm32 r6, 0xd789abfd; 142imm32 r7, 0xe89abcdf; 143R0 = ~ R5; 144R1 = ~ R5; 145R2 = ~ R5; 146R3 = ~ R5; 147R4 = ~ R5; 148R5 = ~ R5; 149R6 = ~ R5; 150R7 = ~ R5; 151CHECKREG r0, 0x39876043; 152CHECKREG r1, 0x39876043; 153CHECKREG r2, 0x39876043; 154CHECKREG r3, 0x39876043; 155CHECKREG r4, 0x39876043; 156CHECKREG r5, 0x39876043; 157CHECKREG r6, 0xC6789FBC; 158CHECKREG r7, 0xC6789FBC; 159 160imm32 r0, 0xe0789abc; 161imm32 r1, 0xe2345678; 162imm32 r2, 0x2e456789; 163imm32 r3, 0x34e6789a; 164imm32 r4, 0x856e89ab; 165imm32 r5, 0x9678eabc; 166imm32 r6, 0xa789aecd; 167imm32 r7, 0xb89abcee; 168R0 = ~ R6; 169R1 = ~ R6; 170R2 = ~ R6; 171R3 = ~ R6; 172R4 = ~ R6; 173R5 = ~ R6; 174R6 = ~ R6; 175R7 = ~ R6; 176CHECKREG r0, 0x58765132; 177CHECKREG r1, 0x58765132; 178CHECKREG r2, 0x58765132; 179CHECKREG r3, 0x58765132; 180CHECKREG r4, 0x58765132; 181CHECKREG r5, 0x58765132; 182CHECKREG r6, 0x58765132; 183CHECKREG r7, 0xA789AECD; 184 185imm32 r0, 0x012300f5; 186imm32 r1, 0x80374659; 187imm32 r2, 0x98456589; 188imm32 r3, 0xa486589a; 189imm32 r4, 0xb56589ab; 190imm32 r5, 0xc6588abc; 191imm32 r6, 0xd589a8cd; 192imm32 r7, 0x589abc88; 193R0 = ~ R7; 194R1 = ~ R7; 195R2 = ~ R7; 196R3 = ~ R7; 197R4 = ~ R7; 198R5 = ~ R7; 199R7 = ~ R7; 200R6 = ~ R7; 201CHECKREG r0, 0xA7654377; 202CHECKREG r1, 0xA7654377; 203CHECKREG r2, 0xA7654377; 204CHECKREG r3, 0xA7654377; 205CHECKREG r4, 0xA7654377; 206CHECKREG r5, 0xA7654377; 207CHECKREG r6, 0x589ABC88; 208CHECKREG r7, 0xA7654377; 209 210 211pass 212