1 1.1 christos # Intel(r) Wireless MMX(tm) technology testcase for TEXTRM 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 textrm 10 1.1 christos textrm: 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 Unsigned Byte Wide Extraction 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, 0x111111ff 22 1.1 christos 23 1.1 christos tmcrr wr0, r0, r1 24 1.1 christos 25 1.1 christos textrmub r2, wr0, #3 26 1.1 christos 27 1.1 christos tmrrc r0, r1, wr0 28 1.1 christos 29 1.1 christos test_h_gr r0, 0x12345678 30 1.1 christos test_h_gr r1, 0x9abcdef0 31 1.1 christos test_h_gr r2, 0x00000012 32 1.1 christos 33 1.1 christos # Test Signed Byte Wide Extraction 34 1.1 christos 35 1.1 christos mvi_h_gr r0, 0x12345678 36 1.1 christos mvi_h_gr r1, 0x9abcdef0 37 1.1 christos mvi_h_gr r2, 0x111111ff 38 1.1 christos 39 1.1 christos tmcrr wr0, r0, r1 40 1.1 christos 41 1.1 christos textrmsb r2, wr0, #4 42 1.1 christos 43 1.1 christos tmrrc r0, r1, wr0 44 1.1 christos 45 1.1 christos test_h_gr r0, 0x12345678 46 1.1 christos test_h_gr r1, 0x9abcdef0 47 1.1 christos test_h_gr r2, 0xfffffff0 48 1.1 christos 49 1.1 christos # Test Unsigned Half Word Wide Extraction 50 1.1 christos 51 1.1 christos mvi_h_gr r0, 0x12345678 52 1.1 christos mvi_h_gr r1, 0x9abcdef0 53 1.1 christos mvi_h_gr r2, 0x111111ff 54 1.1 christos 55 1.1 christos tmcrr wr0, r0, r1 56 1.1 christos 57 1.1 christos textrmuh r2, wr0, #3 58 1.1 christos 59 1.1 christos tmrrc r0, r1, wr0 60 1.1 christos 61 1.1 christos test_h_gr r0, 0x12345678 62 1.1 christos test_h_gr r1, 0x9abcdef0 63 1.1 christos test_h_gr r2, 0x00009abc 64 1.1 christos 65 1.1 christos # Test Signed Half Word Wide Extraction 66 1.1 christos 67 1.1 christos mvi_h_gr r0, 0x12345678 68 1.1 christos mvi_h_gr r1, 0x9abcdef0 69 1.1 christos mvi_h_gr r2, 0x111111ff 70 1.1 christos 71 1.1 christos tmcrr wr0, r0, r1 72 1.1 christos 73 1.1 christos textrmsh r2, wr0, #1 74 1.1 christos 75 1.1 christos tmrrc r0, r1, wr0 76 1.1 christos 77 1.1 christos test_h_gr r0, 0x12345678 78 1.1 christos test_h_gr r1, 0x9abcdef0 79 1.1 christos test_h_gr r2, 0x00001234 80 1.1 christos 81 1.1 christos # Test Unsigned Word Wide Extraction 82 1.1 christos 83 1.1 christos mvi_h_gr r0, 0x12345678 84 1.1 christos mvi_h_gr r1, 0x9abcdef0 85 1.1 christos mvi_h_gr r2, 0x111111ff 86 1.1 christos 87 1.1 christos tmcrr wr0, r0, r1 88 1.1 christos 89 1.1 christos textrmuw r2, wr0, #0 90 1.1 christos 91 1.1 christos tmrrc r0, r1, wr0 92 1.1 christos 93 1.1 christos test_h_gr r0, 0x12345678 94 1.1 christos test_h_gr r1, 0x9abcdef0 95 1.1 christos test_h_gr r2, 0x12345678 96 1.1 christos 97 1.1 christos # Test Signed Word Wide Extraction 98 1.1 christos 99 1.1 christos mvi_h_gr r0, 0x12345678 100 1.1 christos mvi_h_gr r1, 0x9abcdef0 101 1.1 christos mvi_h_gr r2, 0x111111ff 102 1.1 christos 103 1.1 christos tmcrr wr0, r0, r1 104 1.1 christos 105 1.1 christos textrmsw r2, wr0, #1 106 1.1 christos 107 1.1 christos tmrrc r0, r1, wr0 108 1.1 christos 109 1.1 christos test_h_gr r0, 0x12345678 110 1.1 christos test_h_gr r1, 0x9abcdef0 111 1.1 christos test_h_gr r2, 0x9abcdef0 112 1.1 christos 113 1.1 christos pass 114