blob: 70468a647be2b5afd997335463209530c139fd45 [file] [log] [blame]
//Original:/testcases/core/c_alu2op_conv_h/c_alu2op_conv_h.dsp
// Spec Reference: alu2op convert h
# mach: bfin
.include "testutils.inc"
start
imm32 r0, 0x00789abc;
imm32 r1, 0x12345678;
imm32 r2, 0x23456789;
imm32 r3, 0x3456789a;
imm32 r4, 0x856789ab;
imm32 r5, 0x96789abc;
imm32 r6, 0xa789abcd;
imm32 r7, 0xb89abcde;
R0 = R0.L (Z);
R1 = R0.L (Z);
R2 = R0.L (Z);
R3 = R0.L (Z);
R4 = R0.L (Z);
R5 = R0.L (Z);
R6 = R0.L (Z);
R7 = R0.L (Z);
CHECKREG r0, 0x00009ABC;
CHECKREG r1, 0x00009ABC;
CHECKREG r2, 0x00009ABC;
CHECKREG r3, 0x00009ABC;
CHECKREG r4, 0x00009ABC;
CHECKREG r5, 0x00009ABC;
CHECKREG r6, 0x00009ABC;
CHECKREG r7, 0x00009ABC;
imm32 r0, 0x01230002;
imm32 r1, 0x00374659;
imm32 r2, 0x93456789;
imm32 r3, 0xa456789a;
imm32 r4, 0xb56789ab;
imm32 r5, 0xc6789abc;
imm32 r6, 0xd789abcd;
imm32 r7, 0xe89abcde;
R0 = R1.L (Z);
R2 = R1.L (Z);
R3 = R1.L (Z);
R4 = R1.L (Z);
R5 = R1.L (Z);
R6 = R1.L (Z);
R7 = R1.L (Z);
R1 = R1.L (Z);
CHECKREG r0, 0x00004659;
CHECKREG r1, 0x00004659;
CHECKREG r2, 0x00004659;
CHECKREG r3, 0x00004659;
CHECKREG r4, 0x00004659;
CHECKREG r5, 0x00004659;
CHECKREG r6, 0x00004659;
CHECKREG r7, 0x00004659;
imm32 r0, 0x10789abc;
imm32 r1, 0x11345678;
imm32 r2, 0x93156789;
imm32 r3, 0xd451789a;
imm32 r4, 0x856719ab;
imm32 r5, 0x267891bc;
imm32 r6, 0xa789ab1d;
imm32 r7, 0x989ab1de;
R0 = R2.L (Z);
R1 = R2.L (Z);
R3 = R2.L (Z);
R4 = R2.L (Z);
R5 = R2.L (Z);
R6 = R2.L (Z);
R7 = R2.L (Z);
R2 = R2.L (Z);
CHECKREG r0, 0x00006789;
CHECKREG r1, 0x00006789;
CHECKREG r2, 0x00006789;
CHECKREG r3, 0x00006789;
CHECKREG r4, 0x00006789;
CHECKREG r5, 0x00006789;
CHECKREG r6, 0x00006789;
CHECKREG r7, 0x00006789;
imm32 r0, 0x21230002;
imm32 r1, 0x02374659;
imm32 r2, 0x93256789;
imm32 r3, 0xa952789a;
imm32 r4, 0xb59729ab;
imm32 r5, 0xc67992bc;
imm32 r6, 0xd7899b2d;
imm32 r7, 0xe89ab9d2;
R0 = R3.L (Z);
R1 = R3.L (Z);
R2 = R3.L (Z);
R4 = R3.L (Z);
R5 = R3.L (Z);
R6 = R3.L (Z);
R7 = R3.L (Z);
R3 = R3.L (Z);
CHECKREG r0, 0x0000789A;
CHECKREG r1, 0x0000789A;
CHECKREG r2, 0x0000789A;
CHECKREG r3, 0x0000789A;
CHECKREG r4, 0x0000789A;
CHECKREG r5, 0x0000789A;
CHECKREG r6, 0x0000789A;
CHECKREG r7, 0x0000789A;
imm32 r0, 0xa0789abc;
imm32 r1, 0x1a345678;
imm32 r2, 0x23a56789;
imm32 r3, 0x645a789a;
imm32 r4, 0x8667a9ab;
imm32 r5, 0x96689abc;
imm32 r6, 0xa787abad;
imm32 r7, 0xb89a7cda;
R0 = R4.L (Z);
R1 = R4.L (Z);
R2 = R4.L (Z);
R3 = R4.L (Z);
R4 = R4.L (Z);
R5 = R4.L (Z);
R6 = R4.L (Z);
R7 = R4.L (Z);
CHECKREG r0, 0x0000A9AB;
CHECKREG r1, 0x0000A9AB;
CHECKREG r2, 0x0000A9AB;
CHECKREG r3, 0x0000A9AB;
CHECKREG r4, 0x0000A9AB;
CHECKREG r5, 0x0000A9AB;
CHECKREG r6, 0x0000A9AB;
CHECKREG r7, 0x0000A9AB;
imm32 r0, 0xf1230002;
imm32 r1, 0x0f374659;
imm32 r2, 0x93f56789;
imm32 r3, 0xa45f789a;
imm32 r4, 0xb567f9ab;
imm32 r5, 0xc6789fbc;
imm32 r6, 0xd789abfd;
imm32 r7, 0xe89abcdf;
R0 = R5.L (Z);
R1 = R5.L (Z);
R2 = R5.L (Z);
R3 = R5.L (Z);
R4 = R5.L (Z);
R6 = R5.L (Z);
R7 = R5.L (Z);
R5 = R5.L (Z);
CHECKREG r0, 0x00009FBC;
CHECKREG r1, 0x00009FBC;
CHECKREG r2, 0x00009FBC;
CHECKREG r3, 0x00009FBC;
CHECKREG r4, 0x00009FBC;
CHECKREG r5, 0x00009FBC;
CHECKREG r6, 0x00009FBC;
CHECKREG r7, 0x00009FBC;
imm32 r0, 0xe0789abc;
imm32 r1, 0xe2345678;
imm32 r2, 0x2e456789;
imm32 r3, 0x34e6789a;
imm32 r4, 0x856e89ab;
imm32 r5, 0x9678eabc;
imm32 r6, 0xa789aecd;
imm32 r7, 0xb89abcee;
R0 = R6.L (Z);
R1 = R6.L (Z);
R2 = R6.L (Z);
R3 = R6.L (Z);
R4 = R6.L (Z);
R5 = R6.L (Z);
R7 = R6.L (Z);
R6 = R6.L (Z);
CHECKREG r0, 0x0000AECD;
CHECKREG r1, 0x0000AECD;
CHECKREG r2, 0x0000AECD;
CHECKREG r3, 0x0000AECD;
CHECKREG r4, 0x0000AECD;
CHECKREG r5, 0x0000AECD;
CHECKREG r6, 0x0000AECD;
CHECKREG r7, 0x0000AECD;
imm32 r0, 0x012300f5;
imm32 r1, 0x80374659;
imm32 r2, 0x98456589;
imm32 r3, 0xa486589a;
imm32 r4, 0xb56589ab;
imm32 r5, 0xc6588abc;
imm32 r6, 0xd589a8cd;
imm32 r7, 0x589abc88;
R0 = R7.L (Z);
R1 = R7.L (Z);
R2 = R7.L (Z);
R3 = R7.L (Z);
R4 = R7.L (Z);
R5 = R7.L (Z);
R6 = R7.L (Z);
R7 = R7.L (Z);
CHECKREG r0, 0x0000BC88;
CHECKREG r1, 0x0000BC88;
CHECKREG r2, 0x0000BC88;
CHECKREG r3, 0x0000BC88;
CHECKREG r4, 0x0000BC88;
CHECKREG r5, 0x0000BC88;
CHECKREG r6, 0x0000BC88;
CHECKREG r7, 0x0000BC88;
pass