24 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=gfx900 -start-before=amdgpu-isel -stop-after=amdgpu-isel < %s | FileCheck %s --check-prefix=GCN2; RUN: llc -mtriple=amdgcn -mcpu=gfx900 -start-before=amdgpu-isel -stop-after=amdgpu-isel -enable-new-pm < %s | FileCheck %s --check-prefix=GCN3 4; We're really just checking for no crashes5; The feature we're testing for in AdjustWriteMask leaves the image_load as an instruction just post amdgpu-isel6; In reality, it's hard to get an image intrinsic into AdjustWriteMask with no uses as it will usually get removed7; first, but it can happen, hence the fix associated with this test8 9; GCN-LABEL: name: _amdgpu_cs_main10; GCN-LABEL: bb.011; GCN: IMAGE_LOAD_V4_V212define amdgpu_cs void @_amdgpu_cs_main(i32 %dummy) local_unnamed_addr #0 {13.entry:14 %unused.result = tail call <4 x float> @llvm.amdgcn.image.load.2d.v4f32.i32(i32 15, i32 poison, i32 poison, <8 x i32> poison, i32 0, i32 0) #315 call void asm sideeffect ";", "" () #016 ret void17}18 19; Function Attrs: nounwind readonly20declare <4 x float> @llvm.amdgcn.image.load.2d.v4f32.i32(i32, i32, i32, <8 x i32>, i32, i32) #121 22attributes #0 = { nounwind }23attributes #1 = { nounwind readonly }24