1183724Ssos//Original:/testcases/core/c_alu2op_conv_b/c_alu2op_conv_b.dsp 2183724Ssos// Spec Reference: alu2op convert b 3183724Ssos# mach: bfin 4183724Ssos 5183724Ssos.include "testutils.inc" 6183724Ssos start 7249213Smarius 8183724Ssos 9183724Ssos 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 (Z); 19R1 = R0.B (Z); 20R2 = R0.B (Z); 21R3 = R0.B (Z); 22R4 = R0.B (Z); 23R5 = R0.B (Z); 24R6 = R0.B (Z); 25R7 = R0.B (Z); 26CHECKREG r0, 0x000000BC; 27CHECKREG r1, 0x000000BC; 28CHECKREG r2, 0x000000BC; 29CHECKREG r3, 0x000000BC; 30CHECKREG r4, 0x000000BC; 31CHECKREG r5, 0x000000BC; 32CHECKREG r6, 0x000000BC; 33CHECKREG r7, 0x000000BC; 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 (Z); 44R2 = R1.B (Z); 45R3 = R1.B (Z); 46R4 = R1.B (Z); 47R5 = R1.B (Z); 48R6 = R1.B (Z); 49R7 = R1.B (Z); 50R1 = R1.B (Z); 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 (Z); 69R1 = R2.B (Z); 70R3 = R2.B (Z); 71R4 = R2.B (Z); 72R5 = R2.B (Z); 73R6 = R2.B (Z); 74R7 = R2.B (Z); 75R2 = R2.B (Z); 76CHECKREG r0, 0x00000089; 77CHECKREG r1, 0x00000089; 78CHECKREG r2, 0x00000089; 79CHECKREG r3, 0x00000089; 80CHECKREG r4, 0x00000089; 81CHECKREG r5, 0x00000089; 82CHECKREG r6, 0x00000089; 83CHECKREG r7, 0x00000089; 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 (Z); 94R1 = R3.B (Z); 95R2 = R3.B (Z); 96R4 = R3.B (Z); 97R5 = R3.B (Z); 98R6 = R3.B (Z); 99R7 = R3.B (Z); 100R3 = R3.B (Z); 101CHECKREG r0, 0x0000009A; 102CHECKREG r1, 0x0000009A; 103CHECKREG r2, 0x0000009A; 104CHECKREG r3, 0x0000009A; 105CHECKREG r4, 0x0000009A; 106CHECKREG r5, 0x0000009A; 107CHECKREG r6, 0x0000009A; 108CHECKREG r7, 0x0000009A; 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 (Z); 119R1 = R4.B (Z); 120R2 = R4.B (Z); 121R3 = R4.B (Z); 122R4 = R4.B (Z); 123R5 = R4.B (Z); 124R6 = R4.B (Z); 125R7 = R4.B (Z); 126CHECKREG r0, 0x000000AB; 127CHECKREG r1, 0x000000AB; 128CHECKREG r2, 0x000000AB; 129CHECKREG r3, 0x000000AB; 130CHECKREG r4, 0x000000AB; 131CHECKREG r5, 0x000000AB; 132CHECKREG r6, 0x000000AB; 133CHECKREG r7, 0x000000AB; 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 (Z); 144R1 = R5.B (Z); 145R2 = R5.B (Z); 146R3 = R5.B (Z); 147R4 = R5.B (Z); 148R6 = R5.B (Z); 149R7 = R5.B (Z); 150R5 = R5.B (Z); 151CHECKREG r0, 0x000000BC; 152CHECKREG r1, 0x000000BC; 153CHECKREG r2, 0x000000BC; 154CHECKREG r3, 0x000000BC; 155CHECKREG r4, 0x000000BC; 156CHECKREG r5, 0x000000BC; 157CHECKREG r6, 0x000000BC; 158CHECKREG r7, 0x000000BC; 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 (Z); 169R1 = R6.B (Z); 170R2 = R6.B (Z); 171R3 = R6.B (Z); 172R4 = R6.B (Z); 173R5 = R6.B (Z); 174R7 = R6.B (Z); 175R6 = R6.B (Z); 176CHECKREG r0, 0x000000CD; 177CHECKREG r1, 0x000000CD; 178CHECKREG r2, 0x000000CD; 179CHECKREG r3, 0x000000CD; 180CHECKREG r4, 0x000000CD; 181CHECKREG r5, 0x000000CD; 182CHECKREG r6, 0x000000CD; 183CHECKREG r7, 0x000000CD; 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 (Z); 194R1 = R7.B (Z); 195R2 = R7.B (Z); 196R3 = R7.B (Z); 197R4 = R7.B (Z); 198R5 = R7.B (Z); 199R6 = R7.B (Z); 200R7 = R7.B (Z); 201CHECKREG r0, 0x00000088; 202CHECKREG r1, 0x00000088; 203CHECKREG r2, 0x00000088; 204CHECKREG r3, 0x00000088; 205CHECKREG r4, 0x00000088; 206CHECKREG r5, 0x00000088; 207CHECKREG r6, 0x00000088; 208CHECKREG r7, 0x00000088; 209 210 211pass 212