1 //===-- R600Defines.h - R600 Helper Macros ----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 #define MO_FLAG_CLAMP (1 << 0)
13 #define MO_FLAG_NEG (1 << 1)
14 #define MO_FLAG_ABS (1 << 2)
15 #define MO_FLAG_MASK (1 << 3)
16 #define MO_FLAG_PUSH (1 << 4)
17 #define MO_FLAG_NOT_LAST (1 << 5)
18 #define NUM_MO_FLAGS 6
20 // Helper for finding getting the operand index for the instruction flags
22 #define GET_FLAG_OPERAND_IDX(Flags) (((Flags) >> 7) & 0x3)