1@ Check MSR and MRS instruction operand syntax. 2@ Also check for MSR/MRS acceptance in ARM/THUMB modes. 3 4.section .text 5.syntax unified 6 7 @ Write to Special Register from register 8 msr APSR,r9 @ deprecated usage. 9 msr APSR_g,r9 10 msr APSR_nzcvq,r9 11 msr APSR_nzcvqg,r9 12 13 @ Write to CPSR flags 14 msr CPSR,r9 15 msr CPSR_s,r9 16 msr CPSR_f,r9 17 msr CPSR_c,r9 18 msr CPSR_x,r9 19 20 @ Write to CPSR flag combos 21 msr CPSR_fs, r9 22 msr CPSR_fx, r9 23 msr CPSR_fc, r9 24 msr CPSR_sf, r9 25 msr CPSR_sx, r9 26 msr CPSR_sc, r9 27 msr CPSR_xf, r9 28 msr CPSR_xs, r9 29 msr CPSR_xc, r9 30 msr CPSR_cf, r9 31 msr CPSR_cs, r9 32 msr CPSR_cx, r9 33 msr CPSR_fsx, r9 34 msr CPSR_fsc, r9 35 msr CPSR_fxs, r9 36 msr CPSR_fxc, r9 37 msr CPSR_fcs, r9 38 msr CPSR_fcx, r9 39 msr CPSR_sfx, r9 40 msr CPSR_sfc, r9 41 msr CPSR_sxf, r9 42 msr CPSR_sxc, r9 43 msr CPSR_scf, r9 44 msr CPSR_scx, r9 45 msr CPSR_xfs, r9 46 msr CPSR_xfc, r9 47 msr CPSR_xsf, r9 48 msr CPSR_xsc, r9 49 msr CPSR_xcf, r9 50 msr CPSR_xcs, r9 51 msr CPSR_cfs, r9 52 msr CPSR_cfx, r9 53 msr CPSR_csf, r9 54 msr CPSR_csx, r9 55 msr CPSR_cxf, r9 56 msr CPSR_cxs, r9 57 msr CPSR_fsxc, r9 58 msr CPSR_fscx, r9 59 msr CPSR_fxsc, r9 60 msr CPSR_fxcs, r9 61 msr CPSR_fcsx, r9 62 msr CPSR_fcxs, r9 63 msr CPSR_sfxc, r9 64 msr CPSR_sfcx, r9 65 msr CPSR_sxfc, r9 66 msr CPSR_sxcf, r9 67 msr CPSR_scfx, r9 68 msr CPSR_scxf, r9 69 msr CPSR_xfsc, r9 70 msr CPSR_xfcs, r9 71 msr CPSR_xsfc, r9 72 msr CPSR_xscf, r9 73 msr CPSR_xcfs, r9 74 msr CPSR_xcsf, r9 75 msr CPSR_cfsx, r9 76 msr CPSR_cfxs, r9 77 msr CPSR_csfx, r9 78 msr CPSR_csxf, r9 79 msr CPSR_cxfs, r9 80 msr CPSR_cxsf, r9 81 82 @ Write to SPSR flags 83 msr SPSR,r9 84 msr SPSR_s,r9 85 msr SPSR_f,r9 86 msr SPSR_c,r9 87 msr SPSR_x,r9 88 89 @ Write to Saved status register 90 msr SPSR_fs, r9 91 msr SPSR_fx, r9 92 msr SPSR_fc, r9 93 msr SPSR_sf, r9 94 msr SPSR_sx, r9 95 msr SPSR_sc, r9 96 msr SPSR_xf, r9 97 msr SPSR_xs, r9 98 msr SPSR_xc, r9 99 msr SPSR_cf, r9 100 msr SPSR_cs, r9 101 msr SPSR_cx, r9 102 msr SPSR_fsx, r9 103 msr SPSR_fsc, r9 104 msr SPSR_fxs, r9 105 msr SPSR_fxc, r9 106 msr SPSR_fcs, r9 107 msr SPSR_fcx, r9 108 msr SPSR_sfx, r9 109 msr SPSR_sfc, r9 110 msr SPSR_sxf, r9 111 msr SPSR_sxc, r9 112 msr SPSR_scf, r9 113 msr SPSR_scx, r9 114 msr SPSR_xfs, r9 115 msr SPSR_xfc, r9 116 msr SPSR_xsf, r9 117 msr SPSR_xsc, r9 118 msr SPSR_xcf, r9 119 msr SPSR_xcs, r9 120 msr SPSR_cfs, r9 121 msr SPSR_cfx, r9 122 msr SPSR_csf, r9 123 msr SPSR_csx, r9 124 msr SPSR_cxf, r9 125 msr SPSR_cxs, r9 126 msr SPSR_fsxc, r9 127 msr SPSR_fscx, r9 128 msr SPSR_fxsc, r9 129 msr SPSR_fxcs, r9 130 msr SPSR_fcsx, r9 131 msr SPSR_fcxs, r9 132 msr SPSR_sfxc, r9 133 msr SPSR_sfcx, r9 134 msr SPSR_sxfc, r9 135 msr SPSR_sxcf, r9 136 msr SPSR_scfx, r9 137 msr SPSR_scxf, r9 138 msr SPSR_xfsc, r9 139 msr SPSR_xfcs, r9 140 msr SPSR_xsfc, r9 141 msr SPSR_xscf, r9 142 msr SPSR_xcfs, r9 143 msr SPSR_xcsf, r9 144 msr SPSR_cfsx, r9 145 msr SPSR_cfxs, r9 146 msr SPSR_csfx, r9 147 msr SPSR_csxf, r9 148 msr SPSR_cxfs, r9 149 msr SPSR_cxsf, r9 150