@@ -111,9 +111,8 @@ image_load v[1:4], [v0, v1], s[16:23] dmask:0xf dim:SQ_RSRC_IMG_2D
111111image_load v [ 1 : 5 ], [ v0 , v1 ], s [ 16 : 23 ] dmask: 0xf dim:SQ_RSRC_IMG_2D tfe
112112// GFX12: encoding: [ 0x01 , 0x00 , 0xc0 , 0xd3 , 0x01 , 0x20 , 0x80 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 ]
113113
114- // FIXME: This test is incorrect because r128 assumes a 128 - bit RSRC.
115- image_load v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D r128
116- // GFX12: encoding: [ 0x10 , 0x00 , 0x40 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
114+ image_load v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D
115+ // GFX12: encoding: [ 0x00 , 0x00 , 0x40 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
117116
118117image_load v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D scope:SCOPE_CU
119118// GFX12: encoding: [ 0x00 , 0x00 , 0x40 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
@@ -154,9 +153,8 @@ image_load v0, v0, s[0:7] dmask:0x1 dim:SQ_RSRC_IMG_1D th:TH_LOAD_BYPASS scope:S
154153image_load v [ 0 : 2 ], [ v4 , v5 ], s [ 8 : 15 ] dmask: 0xf dim:SQ_RSRC_IMG_2D_ARRAY th:TH_LOAD_HT scope:SCOPE_SE a16 tfe d16
155154// GFX12: encoding: [ 0x65 , 0x00 , 0xc0 , 0xd3 , 0x00 , 0x10 , 0xa4 , 0x00 , 0x04 , 0x05 , 0x00 , 0x00 ]
156155
157- // FIXME: This test is incorrect because r128 assumes a 128 - bit RSRC.
158- image_load v [ 0 : 2 ], [ v4 , v5 ], s [ 8 : 15 ] dmask: 0xf dim:SQ_RSRC_IMG_2D_ARRAY th:TH_LOAD_HT scope:SCOPE_SE r128 a16 tfe d16
159- // GFX12: encoding: [ 0x75 , 0x00 , 0xc0 , 0xd3 , 0x00 , 0x10 , 0xa4 , 0x00 , 0x04 , 0x05 , 0x00 , 0x00 ]
156+ image_load v [ 0 : 2 ], [ v4 , v5 ], s [ 8 : 15 ] dmask: 0xf dim:SQ_RSRC_IMG_2D_ARRAY th:TH_LOAD_HT scope:SCOPE_SE a16 tfe d16
157+ // GFX12: encoding: [ 0x65 , 0x00 , 0xc0 , 0xd3 , 0x00 , 0x10 , 0xa4 , 0x00 , 0x04 , 0x05 , 0x00 , 0x00 ]
160158
161159image_load v [ 4 : 7 ], [ v1 , v0 ], s [ 4 : 11 ] dmask: 0xf dim:SQ_RSRC_IMG_2D
162160// GFX12: encoding: [ 0x01 , 0x00 , 0xc0 , 0xd3 , 0x04 , 0x08 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x00 ]
@@ -374,9 +372,8 @@ image_store v[1:4], [v0, v1], s[16:23] dmask:0xf dim:SQ_RSRC_IMG_2D
374372image_store v [ 1 : 5 ], [ v0 , v1 ], s [ 16 : 23 ] dmask: 0xf dim:SQ_RSRC_IMG_2D tfe
375373// GFX12: encoding: [ 0x01 , 0x80 , 0xc1 , 0xd3 , 0x01 , 0x20 , 0x80 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 ]
376374
377- // FIXME: This test is incorrect because r128 assumes a 128 - bit RSRC.
378- image_store v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D r128
379- // GFX12: encoding: [ 0x10 , 0x80 , 0x41 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
375+ image_store v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D
376+ // GFX12: encoding: [ 0x00 , 0x80 , 0x41 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
380377
381378image_store v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D scope:SCOPE_CU
382379// GFX12: encoding: [ 0x00 , 0x80 , 0x41 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
@@ -558,9 +555,8 @@ image_atomic_swap v0, v0, s[0:7] dmask:0x1 dim:SQ_RSRC_IMG_1D th:TH_ATOMIC_CASCA
558555image_atomic_swap v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D th:TH_ATOMIC_CASCADE_NT scope:SCOPE_SYS
559556// GFX12: encoding: [ 0x00 , 0x80 , 0x42 , 0xd0 , 0x00 , 0x00 , 0x6c , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
560557
561- // FIXME: This test is incorrect because r128 assumes a 128 - bit RSRC.
562- image_atomic_swap v0 , [ v2 , v3 ], s [ 4 : 11 ] dmask: 0x1 dim:SQ_RSRC_IMG_2D r128
563- // GFX12: encoding: [ 0x11 , 0x80 , 0x42 , 0xd0 , 0x00 , 0x08 , 0x00 , 0x00 , 0x02 , 0x03 , 0x00 , 0x00 ]
558+ image_atomic_swap v0 , [ v2 , v3 ], s [ 4 : 11 ] dmask: 0x1 dim:SQ_RSRC_IMG_2D
559+ // GFX12: encoding: [ 0x01 , 0x80 , 0x42 , 0xd0 , 0x00 , 0x08 , 0x00 , 0x00 , 0x02 , 0x03 , 0x00 , 0x00 ]
564560
565561image_atomic_swap v0 , v0 , s [ 0 : 7 ] dmask: 0x1 dim:SQ_RSRC_IMG_1D a16
566562// GFX12: encoding: [ 0x40 , 0x80 , 0x42 , 0xd0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ]
0 commit comments