1//Original:/testcases/core/c_alu2op_conv_xb/c_alu2op_conv_xb.dsp 2// Spec Reference: alu2op convert xb 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.B (X); 19R1 = R0.B (X); 20R2 = R0.B (X); 21R3 = R0.B (X); 22R4 = R0.B (X); 23R5 = R0.B (X); 24R6 = R0.B (X); 25R7 = R0.B (X); 26CHECKREG r0, 0xFFFFFFBC; 27CHECKREG r1, 0xFFFFFFBC; 28CHECKREG r2, 0xFFFFFFBC; 29CHECKREG r3, 0xFFFFFFBC; 30CHECKREG r4, 0xFFFFFFBC; 31CHECKREG r5, 0xFFFFFFBC; 32CHECKREG r6, 0xFFFFFFBC; 33CHECKREG r7, 0xFFFFFFBC; 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.B (X); 44R2 = R1.B (X); 45R3 = R1.B (X); 46R4 = R1.B (X); 47R5 = R1.B (X); 48R6 = R1.B (X); 49R7 = R1.B (X); 50R1 = R1.B (X); 51CHECKREG r0, 0x00000059; 52CHECKREG r1, 0x00000059; 53CHECKREG r2, 0x00000059; 54CHECKREG r3, 0x00000059; 55CHECKREG r4, 0x00000059; 56CHECKREG r5, 0x00000059; 57CHECKREG r6, 0x00000059; 58CHECKREG r7, 0x00000059; 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.B (X); 69R1 = R2.B (X); 70R3 = R2.B (X); 71R4 = R2.B (X); 72R5 = R2.B (X); 73R6 = R2.B (X); 74R7 = R2.B (X); 75R2 = R2.B (X); 76CHECKREG r0, 0xFFFFFF89; 77CHECKREG r1, 0xFFFFFF89; 78CHECKREG r2, 0xFFFFFF89; 79CHECKREG r3, 0xFFFFFF89; 80CHECKREG r4, 0xFFFFFF89; 81CHECKREG r5, 0xFFFFFF89; 82CHECKREG r6, 0xFFFFFF89; 83CHECKREG r7, 0xFFFFFF89; 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.B (X); 94R1 = R3.B (X); 95R2 = R3.B (X); 96R4 = R3.B (X); 97R5 = R3.B (X); 98R6 = R3.B (X); 99R7 = R3.B (X); 100R3 = R3.B (X); 101CHECKREG r0, 0xFFFFFF9A; 102CHECKREG r1, 0xFFFFFF9A; 103CHECKREG r2, 0xFFFFFF9A; 104CHECKREG r3, 0xFFFFFF9A; 105CHECKREG r4, 0xFFFFFF9A; 106CHECKREG r5, 0xFFFFFF9A; 107CHECKREG r6, 0xFFFFFF9A; 108CHECKREG r7, 0xFFFFFF9A; 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.B (X); 119R1 = R4.B (X); 120R2 = R4.B (X); 121R3 = R4.B (X); 122R4 = R4.B (X); 123R5 = R4.B (X); 124R6 = R4.B (X); 125R7 = R4.B (X); 126CHECKREG r0, 0xFFFFFFAB; 127CHECKREG r1, 0xFFFFFFAB; 128CHECKREG r2, 0xFFFFFFAB; 129CHECKREG r3, 0xFFFFFFAB; 130CHECKREG r4, 0xFFFFFFAB; 131CHECKREG r5, 0xFFFFFFAB; 132CHECKREG r6, 0xFFFFFFAB; 133CHECKREG r7, 0xFFFFFFAB; 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.B (X); 144R1 = R5.B (X); 145R2 = R5.B (X); 146R3 = R5.B (X); 147R4 = R5.B (X); 148R6 = R5.B (X); 149R7 = R5.B (X); 150R5 = R5.B (X); 151CHECKREG r0, 0xFFFFFFBC; 152CHECKREG r1, 0xFFFFFFBC; 153CHECKREG r2, 0xFFFFFFBC; 154CHECKREG r3, 0xFFFFFFBC; 155CHECKREG r4, 0xFFFFFFBC; 156CHECKREG r5, 0xFFFFFFBC; 157CHECKREG r6, 0xFFFFFFBC; 158CHECKREG r7, 0xFFFFFFBC; 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.B (X); 169R1 = R6.B (X); 170R2 = R6.B (X); 171R3 = R6.B (X); 172R4 = R6.B (X); 173R5 = R6.B (X); 174R7 = R6.B (X); 175R6 = R6.B (X); 176CHECKREG r0, 0xFFFFFFCD; 177CHECKREG r1, 0xFFFFFFCD; 178CHECKREG r2, 0xFFFFFFCD; 179CHECKREG r3, 0xFFFFFFCD; 180CHECKREG r4, 0xFFFFFFCD; 181CHECKREG r5, 0xFFFFFFCD; 182CHECKREG r6, 0xFFFFFFCD; 183CHECKREG r7, 0xFFFFFFCD; 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.B (X); 194R1 = R7.B (X); 195R2 = R7.B (X); 196R3 = R7.B (X); 197R4 = R7.B (X); 198R5 = R7.B (X); 199R6 = R7.B (X); 200R7 = R7.B (X); 201CHECKREG r0, 0xFFFFFF88; 202CHECKREG r1, 0xFFFFFF88; 203CHECKREG r2, 0xFFFFFF88; 204CHECKREG r3, 0xFFFFFF88; 205CHECKREG r4, 0xFFFFFF88; 206CHECKREG r5, 0xFFFFFF88; 207CHECKREG r6, 0xFFFFFF88; 208CHECKREG r7, 0xFFFFFF88; 209 210 211pass 212