GPUOcelot
Public Member Functions | Public Attributes

test::TestInstructions Class Reference

Collaboration diagram for test::TestInstructions:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestInstructions ()
 ~TestInstructions ()
PTXOperand reg (std::string name, PTXOperand::DataType type, PTXOperand::RegisterType reg)
PTXOperand sreg (PTXOperand::SpecialRegister reg, PTXOperand::VectorIndex v)
PTXOperand imm_uint (std::string name, PTXOperand::DataType type, PTXU64 imm)
PTXOperand imm_int (std::string name, PTXOperand::DataType type, PTXS64 imm)
PTXOperand imm_float (std::string name, PTXOperand::DataType type, PTXF64 imm)
bool testRegisterAccessors ()
bool test_Abs ()
bool test_Add ()
bool test_AddC ()
bool test_Sub ()
bool test_SubC ()
bool test_Sad ()
bool test_Min ()
bool test_Max ()
bool test_Neg ()
bool test_Rem ()
bool test_Div ()
bool test_Mad ()
bool test_Mul ()
bool test_Rcp ()
bool test_Cos ()
bool test_Sin ()
bool test_CopySign ()
bool test_Ex2 ()
bool test_Fma ()
bool test_Lg2 ()
bool test_Sqrt ()
bool test_Rsqrt ()
bool test_And ()
bool test_Or ()
bool test_Xor ()
bool test_Not ()
bool test_Ld_global ()
bool test_Ld_shared ()
bool test_Ld_param ()
bool test_Ld_global_vec ()
bool test_Ld ()
bool test_St_global ()
bool test_St_vec ()
bool test_St ()
bool test_Mov ()
bool test_Cvt ()
bool test_Set ()
bool test_SetP ()
bool test_SelP ()
bool test_SlCt ()
bool test_TestP ()
bool test_Pred_Add ()
bool test_Pred_Ld ()
bool doTest ()

Public Attributes

int threadCount
bool valid
EmulatedKernelkernel
CooperativeThreadArraycta
Module module

Constructor & Destructor Documentation

test::TestInstructions::TestInstructions ( ) [inline]
test::TestInstructions::~TestInstructions ( ) [inline]

Member Function Documentation

bool test::TestInstructions::doTest ( ) [inline]

Test driver

PTXOperand test::TestInstructions::imm_float ( std::string  name,
PTXOperand::DataType  type,
PTXF64  imm 
) [inline]
PTXOperand test::TestInstructions::imm_int ( std::string  name,
PTXOperand::DataType  type,
PTXS64  imm 
) [inline]
PTXOperand test::TestInstructions::imm_uint ( std::string  name,
PTXOperand::DataType  type,
PTXU64  imm 
) [inline]
PTXOperand test::TestInstructions::reg ( std::string  name,
PTXOperand::DataType  type,
PTXOperand::RegisterType  reg 
) [inline]

Constructs a register operand with a given name, type, and register index

PTXOperand test::TestInstructions::sreg ( PTXOperand::SpecialRegister  reg,
PTXOperand::VectorIndex  v 
) [inline]
bool test::TestInstructions::test_Abs ( ) [inline]

Tests several forms of the abs instruction

bool test::TestInstructions::test_Add ( ) [inline]
bool test::TestInstructions::test_AddC ( ) [inline]
bool test::TestInstructions::test_And ( ) [inline]

Tests several forms of the and instruction

bool test::TestInstructions::test_CopySign ( ) [inline]
bool test::TestInstructions::test_Cos ( ) [inline]
bool test::TestInstructions::test_Cvt ( ) [inline]
bool test::TestInstructions::test_Div ( ) [inline]
bool test::TestInstructions::test_Ex2 ( ) [inline]
bool test::TestInstructions::test_Fma ( ) [inline]
bool test::TestInstructions::test_Ld ( ) [inline]
bool test::TestInstructions::test_Ld_global ( ) [inline]

d = a; // named variable a

d = *a; // register d = *(a+immOff); // register-plus-offset d = *(immAddr); // immediate address

bool test::TestInstructions::test_Ld_global_vec ( ) [inline]
bool test::TestInstructions::test_Ld_param ( ) [inline]
bool test::TestInstructions::test_Ld_shared ( ) [inline]
bool test::TestInstructions::test_Lg2 ( ) [inline]
bool test::TestInstructions::test_Mad ( ) [inline]
bool test::TestInstructions::test_Max ( ) [inline]
bool test::TestInstructions::test_Min ( ) [inline]
bool test::TestInstructions::test_Mov ( ) [inline]
bool test::TestInstructions::test_Mul ( ) [inline]
bool test::TestInstructions::test_Neg ( ) [inline]
bool test::TestInstructions::test_Not ( ) [inline]

Tests several forms of the and instruction

bool test::TestInstructions::test_Or ( ) [inline]

Tests several forms of the and instruction

bool test::TestInstructions::test_Pred_Add ( ) [inline]
bool test::TestInstructions::test_Pred_Ld ( ) [inline]
bool test::TestInstructions::test_Rcp ( ) [inline]
bool test::TestInstructions::test_Rem ( ) [inline]
bool test::TestInstructions::test_Rsqrt ( ) [inline]
bool test::TestInstructions::test_Sad ( ) [inline]

Sum of absolute differences

d = c + ((a<b) ? b-a : a-b);

bool test::TestInstructions::test_SelP ( ) [inline]

selp.type d, a, b, c;

.type = { .b16, .b32, .b64, .u16, .u32, .u64, .s16, .s32, .s64, .f32, .f64 };

bool test::TestInstructions::test_Set ( ) [inline]
bool test::TestInstructions::test_SetP ( ) [inline]
bool test::TestInstructions::test_Sin ( ) [inline]
bool test::TestInstructions::test_SlCt ( ) [inline]
bool test::TestInstructions::test_Sqrt ( ) [inline]
bool test::TestInstructions::test_St ( ) [inline]
bool test::TestInstructions::test_St_global ( ) [inline]

Store to global memory

bool test::TestInstructions::test_St_vec ( ) [inline]

Store to global memory

bool test::TestInstructions::test_Sub ( ) [inline]
bool test::TestInstructions::test_SubC ( ) [inline]
bool test::TestInstructions::test_TestP ( ) [inline]
bool test::TestInstructions::test_Xor ( ) [inline]

Tests several forms of the and instruction

bool test::TestInstructions::testRegisterAccessors ( ) [inline]

Tests register getters and setters:


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines