OLD | NEW |
1 //===- subzero/src/IceInstARM32.def - X-Macros for ARM32 insts --*- C++ -*-===// | 1 //===- subzero/src/IceInstARM32.def - X-Macros for ARM32 insts --*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file defines properties of ARM32 instructions in the form of x-macros. | 10 // This file defines properties of ARM32 instructions in the form of x-macros. |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 X(Reg_DREG_Last, = Reg_d31) \ | 282 X(Reg_DREG_Last, = Reg_d31) \ |
283 X(Reg_QREG_First, = Reg_q0) \ | 283 X(Reg_QREG_First, = Reg_q0) \ |
284 X(Reg_QREG_Last, = Reg_q15) | 284 X(Reg_QREG_Last, = Reg_q15) |
285 // define X(val, init) | 285 // define X(val, init) |
286 | 286 |
287 // Load/Store instruction width suffixes and FP/Vector element size suffixes | 287 // Load/Store instruction width suffixes and FP/Vector element size suffixes |
288 // the # of offset bits allowed as part of an addressing mode (for sign or zero | 288 // the # of offset bits allowed as part of an addressing mode (for sign or zero |
289 // extending load/stores). | 289 // extending load/stores). |
290 #define ICETYPEARM32_TABLE \ | 290 #define ICETYPEARM32_TABLE \ |
291 /* tag, element type, int_width, vec_width, addr bits sext, zext, \ | 291 /* tag, element type, int_width, vec_width, addr bits sext, zext, \ |
292 reg-reg addr allowed */ \ | 292 reg-reg addr allowed, shift allowed, */ \ |
293 X(IceType_void, IceType_void, "" , "" , 0 , 0 , 0) \ | 293 X(IceType_void, IceType_void, "" , "" , 0 , 0 , 0, 0) \ |
294 X(IceType_i1, IceType_void, "b", "" , 8 , 12, 1) \ | 294 X(IceType_i1, IceType_void, "b", "" , 8 , 12, 1, 1) \ |
295 X(IceType_i8, IceType_void, "b", "" , 8 , 12, 1) \ | 295 X(IceType_i8, IceType_void, "b", "" , 8 , 12, 1, 1) \ |
296 X(IceType_i16, IceType_void, "h", "" , 8 , 8 , 1) \ | 296 X(IceType_i16, IceType_void, "h", "" , 8 , 8 , 1, 0) \ |
297 X(IceType_i32, IceType_void, "" , "" , 12, 12, 1) \ | 297 X(IceType_i32, IceType_void, "" , "" , 12, 12, 1, 1) \ |
298 X(IceType_i64, IceType_void, "d", "" , 0 , 0 , 0) \ | 298 X(IceType_i64, IceType_void, "d", "" , 12, 12, 1, 1) \ |
299 X(IceType_f32, IceType_void, "" , ".f32", 8, 8 , 0) \ | 299 X(IceType_f32, IceType_void, "" , ".f32", 8, 8 , 0, 0) \ |
300 X(IceType_f64, IceType_void, "" , ".f64", 8, 8 , 0) \ | 300 X(IceType_f64, IceType_void, "" , ".f64", 8, 8 , 0, 0) \ |
301 X(IceType_v4i1, IceType_i32 , "" , ".i32", 0 , 0 , 1) \ | 301 X(IceType_v4i1, IceType_i32 , "" , ".i32", 0 , 0 , 1, 0) \ |
302 X(IceType_v8i1, IceType_i16 , "" , ".i16", 0 , 0 , 1) \ | 302 X(IceType_v8i1, IceType_i16 , "" , ".i16", 0 , 0 , 1, 0) \ |
303 X(IceType_v16i1, IceType_i8 , "" , ".i8" , 0 , 0 , 1) \ | 303 X(IceType_v16i1, IceType_i8 , "" , ".i8" , 0 , 0 , 1, 0) \ |
304 X(IceType_v16i8, IceType_i8 , "" , ".i8" , 0 , 0 , 1) \ | 304 X(IceType_v16i8, IceType_i8 , "" , ".i8" , 0 , 0 , 1, 0) \ |
305 X(IceType_v8i16, IceType_i16 , "" , ".i16", 0 , 0 , 1) \ | 305 X(IceType_v8i16, IceType_i16 , "" , ".i16", 0 , 0 , 1, 0) \ |
306 X(IceType_v4i32, IceType_i32 , "" , ".i32", 0 , 0 , 1) \ | 306 X(IceType_v4i32, IceType_i32 , "" , ".i32", 0 , 0 , 1, 0) \ |
307 X(IceType_v4f32, IceType_f32 , "" , ".f32", 0 , 0 , 1) | 307 X(IceType_v4f32, IceType_f32 , "" , ".f32", 0 , 0 , 1, 0) |
308 //#define X(tag, elementty, int_width, vec_width, sbits, ubits, rraddr) | 308 //#define X(tag, elementty, int_width, vec_width, sbits, ubits, rraddr, shaddr) |
309 | 309 |
310 // Shifter types for Data-processing operands as defined in section A5.1.2. | 310 // Shifter types for Data-processing operands as defined in section A5.1.2. |
311 #define ICEINSTARM32SHIFT_TABLE \ | 311 #define ICEINSTARM32SHIFT_TABLE \ |
312 /* enum value, emit */ \ | 312 /* enum value, emit */ \ |
313 X(LSL, "lsl") \ | 313 X(LSL, "lsl") \ |
314 X(LSR, "lsr") \ | 314 X(LSR, "lsr") \ |
315 X(ASR, "asr") \ | 315 X(ASR, "asr") \ |
316 X(ROR, "ror") \ | 316 X(ROR, "ror") \ |
317 X(RRX, "rrx") | 317 X(RRX, "rrx") |
318 //#define X(tag, emit) | 318 //#define X(tag, emit) |
(...skipping 15 matching lines...) Expand all Loading... |
334 X(LS, 9, HI, "ls") /* unsigned lower or same */ \ | 334 X(LS, 9, HI, "ls") /* unsigned lower or same */ \ |
335 X(GE, 10, LT, "ge") /* signed greater than or equal */ \ | 335 X(GE, 10, LT, "ge") /* signed greater than or equal */ \ |
336 X(LT, 11, GE, "lt") /* signed less than */ \ | 336 X(LT, 11, GE, "lt") /* signed less than */ \ |
337 X(GT, 12, LE, "gt") /* signed greater than */ \ | 337 X(GT, 12, LE, "gt") /* signed greater than */ \ |
338 X(LE, 13, GT, "le") /* signed less than or equal */ \ | 338 X(LE, 13, GT, "le") /* signed less than or equal */ \ |
339 X(AL, 14, kNone, "") /* always (unconditional) */ \ | 339 X(AL, 14, kNone, "") /* always (unconditional) */ \ |
340 X(kNone, 15, kNone, "??") /* special condition / none */ | 340 X(kNone, 15, kNone, "??") /* special condition / none */ |
341 //#define X(tag, encode, opp, emit) | 341 //#define X(tag, encode, opp, emit) |
342 | 342 |
343 #endif // SUBZERO_SRC_ICEINSTARM32_DEF | 343 #endif // SUBZERO_SRC_ICEINSTARM32_DEF |
OLD | NEW |