@@ -436,7 +436,7 @@ class MIMG_NoSampler_Helper_gfx90a <mimgopc op, string asm,
436436 RegisterClass dst_rc,
437437 RegisterClass addr_rc,
438438 string dns="">
439- : MIMG_gfx90a <op.GFX10M, (outs getLdStRegisterOperand <dst_rc>.ret:$vdata), dns> {
439+ : MIMG_gfx90a <op.GFX10M, (outs getLdStRegisterOperandAlign2 <dst_rc>.ret:$vdata), dns> {
440440 let InOperandList = !con((ins addr_rc:$vaddr, SReg_256_XNULL:$srsrc,
441441 DMask:$dmask, UNorm:$unorm, CPol:$cpol,
442442 R128A16:$r128, LWE:$lwe, DA:$da),
@@ -578,7 +578,7 @@ multiclass MIMG_NoSampler_Src_Helper <mimgopc op, string asm,
578578 if op.HAS_GFX10M then {
579579 def _V2 : MIMG_NoSampler_Helper <op, asm, dst_rc, VReg_64>;
580580 if !not(ExtendedImageInst) then
581- def _V2_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VReg_64 >;
581+ def _V2_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VReg_64_Align2 >;
582582 def _V2_gfx10 : MIMG_NoSampler_gfx10<op, asm, dst_rc, VReg_64>;
583583 def _V2_nsa_gfx10 : MIMG_NoSampler_nsa_gfx10<op, asm, dst_rc, 2>;
584584 }
@@ -602,7 +602,7 @@ multiclass MIMG_NoSampler_Src_Helper <mimgopc op, string asm,
602602 if op.HAS_GFX10M then {
603603 def _V3 : MIMG_NoSampler_Helper <op, asm, dst_rc, VReg_96>;
604604 if !not(ExtendedImageInst) then
605- def _V3_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VReg_96 >;
605+ def _V3_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VReg_96_Align2 >;
606606 def _V3_gfx10 : MIMG_NoSampler_gfx10<op, asm, dst_rc, VReg_96>;
607607 def _V3_nsa_gfx10 : MIMG_NoSampler_nsa_gfx10<op, asm, dst_rc, 3>;
608608 }
@@ -626,7 +626,7 @@ multiclass MIMG_NoSampler_Src_Helper <mimgopc op, string asm,
626626 if op.HAS_GFX10M then {
627627 def _V4 : MIMG_NoSampler_Helper <op, asm, dst_rc, VReg_128>;
628628 if !not(ExtendedImageInst) then
629- def _V4_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VReg_128 >;
629+ def _V4_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VReg_128_Align2 >;
630630 def _V4_gfx10 : MIMG_NoSampler_gfx10<op, asm, dst_rc, VReg_128>;
631631 def _V4_nsa_gfx10 : MIMG_NoSampler_nsa_gfx10<op, asm, dst_rc, 4,
632632 !if(enableDisasm, "GFX10", "")>;
@@ -694,7 +694,7 @@ class MIMG_Store_Helper_gfx90a <mimgopc op, string asm,
694694 RegisterClass addr_rc,
695695 string dns = "">
696696 : MIMG_gfx90a<op.GFX10M, (outs), dns> {
697- let InOperandList = !con((ins getLdStRegisterOperand <data_rc>.ret:$vdata,
697+ let InOperandList = !con((ins getLdStRegisterOperandAlign2 <data_rc>.ret:$vdata,
698698 addr_rc:$vaddr, SReg_256_XNULL:$srsrc,
699699 DMask:$dmask, UNorm:$unorm, CPol:$cpol,
700700 R128A16:$r128, LWE:$lwe, DA:$da),
@@ -797,7 +797,7 @@ multiclass MIMG_Store_Addr_Helper <mimgopc op, string asm,
797797 let ssamp = 0 in {
798798 if op.HAS_GFX10M then {
799799 def _V2 : MIMG_Store_Helper <op, asm, data_rc, VReg_64>;
800- def _V2_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VReg_64 >;
800+ def _V2_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VReg_64_Align2 >;
801801 def _V2_gfx10 : MIMG_Store_gfx10 <op, asm, data_rc, VReg_64>;
802802 def _V2_nsa_gfx10 : MIMG_Store_nsa_gfx10 <op, asm, data_rc, 2>;
803803 }
@@ -814,7 +814,7 @@ multiclass MIMG_Store_Addr_Helper <mimgopc op, string asm,
814814 let ssamp = 0 in {
815815 if op.HAS_GFX10M then {
816816 def _V3 : MIMG_Store_Helper <op, asm, data_rc, VReg_96>;
817- def _V3_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VReg_96 >;
817+ def _V3_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VReg_96_Align2 >;
818818 def _V3_gfx10 : MIMG_Store_gfx10 <op, asm, data_rc, VReg_96>;
819819 def _V3_nsa_gfx10 : MIMG_Store_nsa_gfx10 <op, asm, data_rc, 3>;
820820 }
@@ -831,7 +831,7 @@ multiclass MIMG_Store_Addr_Helper <mimgopc op, string asm,
831831 let ssamp = 0 in {
832832 if op.HAS_GFX10M then {
833833 def _V4 : MIMG_Store_Helper <op, asm, data_rc, VReg_128>;
834- def _V4_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VReg_128 >;
834+ def _V4_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VReg_128_Align2 >;
835835 def _V4_gfx10 : MIMG_Store_gfx10 <op, asm, data_rc, VReg_128>;
836836 def _V4_nsa_gfx10 : MIMG_Store_nsa_gfx10 <op, asm, data_rc, 4,
837837 !if(enableDisasm, "GFX10", "")>;
@@ -885,10 +885,10 @@ class MIMG_Atomic_gfx6789_base <bits<8> op, string asm, RegisterClass data_rc,
885885
886886class MIMG_Atomic_gfx90a_base <bits<8> op, string asm, RegisterClass data_rc,
887887 RegisterClass addr_rc, string dns="">
888- : MIMG_gfx90a <op, (outs getLdStRegisterOperand <data_rc>.ret:$vdst), dns> {
888+ : MIMG_gfx90a <op, (outs getLdStRegisterOperandAlign2 <data_rc>.ret:$vdst), dns> {
889889 let Constraints = "$vdst = $vdata";
890890
891- let InOperandList = (ins getLdStRegisterOperand <data_rc>.ret:$vdata,
891+ let InOperandList = (ins getLdStRegisterOperandAlign2 <data_rc>.ret:$vdata,
892892 addr_rc:$vaddr, SReg_256_XNULL:$srsrc,
893893 DMask:$dmask, UNorm:$unorm, CPol:$cpol,
894894 R128A16:$r128, LWE:$lwe, DA:$da);
@@ -1022,7 +1022,7 @@ multiclass MIMG_Atomic_Addr_Helper_m <mimgopc op, string asm,
10221022 }
10231023 if op.HAS_VI then {
10241024 def _V2_vi : MIMG_Atomic_vi <op, asm, data_rc, VReg_64, 0>;
1025- def _V2_gfx90a : MIMG_Atomic_gfx90a <op, asm, data_rc, VReg_64 , 0>;
1025+ def _V2_gfx90a : MIMG_Atomic_gfx90a <op, asm, data_rc, VReg_64_Align2 , 0>;
10261026 }
10271027 if op.HAS_GFX10M then {
10281028 def _V2_gfx10 : MIMG_Atomic_gfx10 <op, asm, data_rc, VReg_64, 0>;
@@ -1044,7 +1044,7 @@ multiclass MIMG_Atomic_Addr_Helper_m <mimgopc op, string asm,
10441044 }
10451045 if op.HAS_VI then {
10461046 def _V3_vi : MIMG_Atomic_vi <op, asm, data_rc, VReg_96, 0>;
1047- def _V3_gfx90a : MIMG_Atomic_gfx90a <op, asm, data_rc, VReg_96 , 0>;
1047+ def _V3_gfx90a : MIMG_Atomic_gfx90a <op, asm, data_rc, VReg_96_Align2 , 0>;
10481048 }
10491049 if op.HAS_GFX10M then {
10501050 def _V3_gfx10 : MIMG_Atomic_gfx10 <op, asm, data_rc, VReg_96, 0>;
@@ -1066,7 +1066,7 @@ multiclass MIMG_Atomic_Addr_Helper_m <mimgopc op, string asm,
10661066 }
10671067 if op.HAS_VI then {
10681068 def _V4_vi : MIMG_Atomic_vi <op, asm, data_rc, VReg_128, 0>;
1069- def _V4_gfx90a : MIMG_Atomic_gfx90a <op, asm, data_rc, VReg_128 , 0>;
1069+ def _V4_gfx90a : MIMG_Atomic_gfx90a <op, asm, data_rc, VReg_128_Align2 , 0>;
10701070 }
10711071 if op.HAS_GFX10M then {
10721072 def _V4_gfx10 : MIMG_Atomic_gfx10 <op, asm, data_rc, VReg_128, 0>;
@@ -1140,7 +1140,7 @@ class MIMG_Sampler_Helper <mimgopc op, string asm, RegisterClass dst_rc,
11401140
11411141class MIMG_Sampler_gfx90a<mimgopc op, string asm, RegisterClass dst_rc,
11421142 RegisterClass src_rc, string dns="">
1143- : MIMG_gfx90a<op.GFX10M, (outs getLdStRegisterOperand <dst_rc>.ret:$vdata), dns> {
1143+ : MIMG_gfx90a<op.GFX10M, (outs getLdStRegisterOperandAlign2 <dst_rc>.ret:$vdata), dns> {
11441144 let InOperandList = !con((ins src_rc:$vaddr, SReg_256_XNULL:$srsrc, SReg_128_XNULL:$ssamp,
11451145 DMask:$dmask, UNorm:$unorm, CPol:$cpol,
11461146 R128A16:$r128, LWE:$lwe, DA:$da),
0 commit comments