cloudcores / CuAssembler

An unofficial cuda assembler, for all generations of SASS, hopefully :)
MIT License
361 stars 66 forks source link

about the "L2::128B" #21

Open Shaquille-Wu opened 9 months ago

Shaquille-Wu commented 9 months ago

Hi, big god I meet a new trouble about "LDG",the assembler raise exception like this: ` File hack.main.sm_86.cuasm:795 :

    [B------:R-:W2:-:S04]         /*0080*/                   LDG.E.LTC128B.CONSTANT R4, desc[UR4][R2.64] ;

Error when assembling instruction "[B------:R-:W2:-:S04] LDG.E.LTC128B.CONSTANT R4, desc[UR4][R2.64] ;":

    Assembling failed (NewModi): Unknown modifiers: ({'0_LTC128B'})`

my LDG instruction in ptx like this: ` asm volatile (

    "ld.global.nc.L2::128B.v4.b32 {%0,  %1,  %2,  %3},  [%4];\n"

    : "=r"(reg0.x), "=r"(reg0.y), "=r"(reg0.z), "=r"(reg0.w)

    : "l"(src_ptr)

);`

this exception will be removed if I remove the "L2::128B"

so, would you like to teach me how to solve this trouble?

cloudcores commented 2 months ago

This is still an insufficient encoding problem... The assembler does not know this modifier thus does not know how to encode it.