1 1.1 christos # Intel(r) Wireless MMX(tm) technology testcase for WALIGNI 2 1.1 christos # mach: xscale 3 1.1 christos # as: -mcpu=xscale+iwmmxt 4 1.1 christos 5 1.1 christos .include "testutils.inc" 6 1.1 christos 7 1.1 christos start 8 1.1 christos 9 1.1 christos .global waligni 10 1.1 christos waligni: 11 1.1 christos # Enable access to CoProcessors 0 & 1 before 12 1.1 christos # we attempt these instructions. 13 1.1 christos 14 1.1 christos mvi_h_gr r1, 3 15 1.1 christos mcr p15, 0, r1, cr15, cr1, 0 16 1.1 christos 17 1.1 christos # Test 2 byte align 18 1.1 christos 19 1.1 christos mvi_h_gr r0, 0x12345678 20 1.1 christos mvi_h_gr r1, 0x9abcdef0 21 1.1 christos mvi_h_gr r2, 0x11111111 22 1.1 christos mvi_h_gr r3, 0x00000000 23 1.1 christos mvi_h_gr r4, 0 24 1.1 christos mvi_h_gr r5, 0 25 1.1 christos 26 1.1 christos tmcrr wr0, r0, r1 27 1.1 christos tmcrr wr1, r2, r3 28 1.1 christos tmcrr wr2, r4, r5 29 1.1 christos 30 1.1 christos waligni wr2, wr0, wr1, #2 31 1.1 christos 32 1.1 christos tmrrc r0, r1, wr0 33 1.1 christos tmrrc r2, r3, wr1 34 1.1 christos tmrrc r4, r5, wr2 35 1.1 christos 36 1.1 christos test_h_gr r0, 0x12345678 37 1.1 christos test_h_gr r1, 0x9abcdef0 38 1.1 christos test_h_gr r2, 0x11111111 39 1.1 christos test_h_gr r3, 0x00000000 40 1.1 christos test_h_gr r4, 0xdef01234 41 1.1 christos test_h_gr r5, 0x11119abc 42 1.1 christos 43 1.1 christos pass 44