Skip to content

Commit 1edb01d

Browse files
author
Greg Roth
committed
restore test for correct memory attributes applied to intrinsics
1 parent b9dc4fa commit 1edb01d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/test/CodeGen/DirectX/ResourceGlobalElimination.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,13 @@ entry:
4040
ret void
4141
}
4242

43+
; CSE-DAG: declare <4 x float> @llvm.dx.typedBufferLoad.v4f32.tdx.TypedBuffer_v4f32_1_0_0t(target("dx.TypedBuffer", <4 x float>, 1, 0, 0), i32) [[ROAttr:#[0-9]+]]
44+
; CSE-DAG: declare void @llvm.dx.typedBufferStore.tdx.TypedBuffer_v4f32_1_0_0t.v4f32(target("dx.TypedBuffer", <4 x float>, 1, 0, 0), i32, <4 x float>) [[WOAttr:#[0-9]+]]
45+
4346
attributes #0 = { convergent noinline norecurse "frame-pointer"="all" "hlsl.numthreads"="8,1,1" "hlsl.shader"="compute" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
4447

48+
; Just need to split up the DAG searches.
49+
; CSE: attributes #0
50+
51+
; CSE-DAG: attributes [[ROAttr]] = { {{.*}} memory(read) }
52+
; CSE-DAG: attributes [[WOAttr]] = { {{.*}} memory(write) }

0 commit comments

Comments
 (0)