1# RUN: not llvm-mc -triple mips-unknown-unknown %s 2>%t1 2# RUN: FileCheck %s < %t1 3 4 .set mips0 5 .module fp=64 6# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 7 8 .llvm_internal_mips_reallow_module_directive 9 .module fp=32 10# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 11 12 .set mips1 13 .module fp=64 14# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 15 16 .llvm_internal_mips_reallow_module_directive 17 .module fp=32 18# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 19 20 .set mips2 21 .module fp=64 22# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 23 24 .llvm_internal_mips_reallow_module_directive 25 .module fp=32 26# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 27 28 .set mips3 29 .module fp=64 30# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 31 32 .llvm_internal_mips_reallow_module_directive 33 .module fp=32 34# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 35 36 .set mips4 37 .module fp=64 38# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 39 40 .llvm_internal_mips_reallow_module_directive 41 .module fp=32 42# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 43 44 .set mips5 45 .module fp=64 46# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 47 48 .llvm_internal_mips_reallow_module_directive 49 .module fp=32 50# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 51 52 .set mips32 53 .module fp=64 54# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 55 56 .llvm_internal_mips_reallow_module_directive 57 .module fp=32 58# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 59 60 .set mips32r2 61 .module fp=64 62# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 63 64 .llvm_internal_mips_reallow_module_directive 65 .module fp=32 66# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 67 68 .set mips32r6 69 .module fp=64 70# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 71 72 .llvm_internal_mips_reallow_module_directive 73 .module fp=32 74# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 75 76 .set mips64 77 .module fp=64 78# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 79 80 .llvm_internal_mips_reallow_module_directive 81 .module fp=32 82# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 83 84 .set mips64r2 85 .module fp=64 86# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 87 88 .llvm_internal_mips_reallow_module_directive 89 .module fp=32 90# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 91 92 .set mips64r6 93 .module fp=64 94# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 95 96 .llvm_internal_mips_reallow_module_directive 97 .module fp=32 98# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 99 100 .set arch=mips32 101 .module fp=64 102# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 103 104 .llvm_internal_mips_reallow_module_directive 105 .module fp=32 106# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 107 108 .set mips16 109 .module fp=64 110# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 111 112 .llvm_internal_mips_reallow_module_directive 113 .module fp=32 114# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 115 116 .set nomips16 117 .module fp=64 118# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 119 120 .llvm_internal_mips_reallow_module_directive 121 .module fp=32 122# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 123 124 .set micromips 125 .module fp=64 126# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 127 128 .llvm_internal_mips_reallow_module_directive 129 .module fp=32 130# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 131 132 .set nomicromips 133 .module fp=64 134# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 135 136 .llvm_internal_mips_reallow_module_directive 137 .module fp=32 138# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 139 140 .set msa 141 .module fp=64 142# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 143 144 .llvm_internal_mips_reallow_module_directive 145 .module fp=32 146# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 147 148 .set nomsa 149 .module fp=64 150# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 151 152 .llvm_internal_mips_reallow_module_directive 153 .module fp=32 154# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 155 156 .set dsp 157 .module fp=64 158# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 159 160 .llvm_internal_mips_reallow_module_directive 161 .module fp=32 162# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 163 164 .set nodsp 165 .module fp=64 166# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 167 168 .llvm_internal_mips_reallow_module_directive 169 .module fp=32 170# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 171 172 .set push 173 .module fp=64 174# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 175 176 .llvm_internal_mips_reallow_module_directive 177 .module fp=32 178# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 179 180 .set pop 181 .module fp=64 182# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 183 184 .llvm_internal_mips_reallow_module_directive 185 .module fp=32 186# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 187 188 .set reorder 189 .module fp=64 190# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 191 192 .llvm_internal_mips_reallow_module_directive 193 .module fp=32 194# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 195 196 .set noreorder 197 .module fp=64 198# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 199 200 .llvm_internal_mips_reallow_module_directive 201 .module fp=32 202# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 203 204 .set macro 205 .module fp=64 206# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 207 208 .llvm_internal_mips_reallow_module_directive 209 .module fp=32 210# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 211 212 .set nomacro 213 .module fp=64 214# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 215 216 .llvm_internal_mips_reallow_module_directive 217 .module fp=32 218# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 219 220 .set at 221 .module fp=64 222# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 223 224 .llvm_internal_mips_reallow_module_directive 225 .module fp=32 226# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 227 228 .set at=$3 229 .module fp=64 230# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 231 232 .llvm_internal_mips_reallow_module_directive 233 .module fp=32 234# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 235 236 .set noat 237 .module fp=64 238# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 239 240 .llvm_internal_mips_reallow_module_directive 241 .module fp=32 242# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 243 244 .set fp=32 245 .module fp=64 246# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 247 248 .llvm_internal_mips_reallow_module_directive 249 .module fp=32 250# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 251 252 .cpload $25 253 .module fp=64 254# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 255 256 .llvm_internal_mips_reallow_module_directive 257 .module fp=32 258# CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 259 260 .cpsetup $25, 8, __cerror 261 .module fp=64 262# CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 263