brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 37cfb6c Raw
32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx942 -o - %s | FileCheck -check-prefixes=CHECK,SDAG %s3; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx942 -o - %s | FileCheck  -check-prefixes=CHECK,GISEL %s4 5declare i32 @llvm.amdgcn.workitem.id.x()6declare i32 @llvm.amdgcn.workitem.id.y()7declare i32 @llvm.amdgcn.workitem.id.z()8 9; FIXME: It's not worth adding AssertZext to the intrinsic calls, and10; we don't fold out assertzext undef ->undef11define amdgpu_ps void @undefined_workitems(ptr addrspace(1) %p, ptr addrspace(1) %q, ptr addrspace(1) %r) {12; SDAG-LABEL: undefined_workitems:13; SDAG:       ; %bb.0:14; SDAG-NEXT:    global_store_dword v[0:1], v0, off15; SDAG-NEXT:    global_store_dword v[2:3], v0, off16; SDAG-NEXT:    global_store_dword v[4:5], v0, off17; SDAG-NEXT:    s_endpgm18;19; GISEL-LABEL: undefined_workitems:20; GISEL:       ; %bb.0:21; GISEL-NEXT:    s_endpgm22  %id.x = call i32 @llvm.amdgcn.workitem.id.x()23  store i32 %id.x, ptr addrspace(1) %p24  %id.y = call i32 @llvm.amdgcn.workitem.id.y()25  store i32 %id.y, ptr addrspace(1) %q26  %id.z = call i32 @llvm.amdgcn.workitem.id.z()27  store i32 %id.z, ptr addrspace(1) %r28  ret void29}30;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:31; CHECK: {{.*}}32