1 ;; Test instruction packing 2 3 .text 4 .global main 5main: 6 7MU_IU: 8 nop || nop 9 10FM00_IU_MU: 11 sra r0,r1 || ld r2,@r3 12 sra r0,r1 || bra.s test_end 13 14FM00_MU_IU: 15 ld r2,@r3 || sra r0,r1 16 bra.s test_end || sra r0,r1 17 18FM00_IM_MU: 19 add r4,r5 || ld r2,@r3 20 add r4,r5 || bra.s test_end 21 22FM00_IM_IU: 23 add r4,r5 || sra r0,r1 24 add r4,r5 || mulx a0, r6, r7 25 26FM00_MU_IM: 27 ld r2,@r3 || add r4,r5 28 bra.s test_end || add r4,r5 29 30FM00_IU_IM: 31 sra r0,r1 || add r4,r5 32 mulx a0, r6, r7 || add r4,r5 33 34FM01_IU_MU: 35 sra r0,r1 -> ld r2,@r3 36 sra r0,r1 -> bra.s test_end 37 38FM01_MU_IU: 39 ld r2,@r3 -> sra r0,r1 40 bra.s test_end -> sra r0,r1 41 42FM01_IM_MU: 43 add r4,r5 -> ld r2,@r3 44 add r4,r5 -> bra.s test_end 45 46FM01_IM_IU: 47 add r4,r5 -> sra r0,r1 48 add r4,r5 -> mulx a0, r6, r7 49 50FM01_MU_IM: 51 ld r2,@r3 -> add r4,r5 52 bra.s test_end -> add r4,r5 53 54FM01_IU_IM: 55 sra r0,r1 -> add r4,r5 56 mulx a0, r6, r7 -> add r4,r5 57 58FM10_IU_MU: 59 sra r0,r1 <- ld r2,@r3 60 sra r0,r1 <- bra.s test_end 61 62FM10_MU_IU: 63 ld r2,@r3 <- sra r0,r1 64 bra.s test_end <- sra r0,r1 65 66FM10_IM_MU: 67 add r4,r5 <- ld r2,@r3 68 add r4,r5 <- bra.s test_end 69 70FM10_IM_IU: 71 add r4,r5 <- sra r0,r1 72 add r4,r5 <- mulx a0, r6, r7 73 74FM10_MU_IM: 75 ld r2,@r3 <- add r4,r5 76 bra.s test_end <- add r4,r5 77 78FM10_IU_IM: 79 sra r0,r1 <- add r4,r5 80 mulx a0, r6, r7 <- add r4,r5 81test_end: 82 83 jmp r13 84