brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 5e109f4 Raw
66 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals2; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor %s | FileCheck -allow-unused-prefixes %s3 4@x = global i32 05;.6; CHECK: @x = global i32 07;.8define void @func1() {9; CHECK-LABEL: define {{[^@]+}}@func110; CHECK-SAME: () #[[ATTR0:[0-9]+]] {11; CHECK-NEXT:    store i32 0, ptr @x, align 412; CHECK-NEXT:    ret void13;14  store i32 0, ptr @x15  ret void16}17 18define void @func4() {19; CHECK-LABEL: define {{[^@]+}}@func420; CHECK-SAME: () #[[ATTR0]] {21; CHECK-NEXT:    store i32 0, ptr @x, align 422; CHECK-NEXT:    ret void23;24  store i32 0, ptr @x25  ret void26}27 28define void @func2() #0 {29; CHECK-LABEL: define {{[^@]+}}@func230; CHECK-SAME: () #[[ATTR0]] {31; CHECK-NEXT:    call void @func4()32; CHECK-NEXT:    call void @func1()33; CHECK-NEXT:    ret void34;35  call void @func4()36  call void @func1()37  ret void38}39 40define void @func3() {41; CHECK-LABEL: define {{[^@]+}}@func342; CHECK-SAME: () #[[ATTR0]] {43; CHECK-NEXT:    call void @func1()44; CHECK-NEXT:    ret void45;46  call void @func1()47  ret void48}49 50define amdgpu_kernel void @kernel3() #0 {51; CHECK-LABEL: define {{[^@]+}}@kernel352; CHECK-SAME: () #[[ATTR0]] {53; CHECK-NEXT:    call void @func2()54; CHECK-NEXT:    call void @func3()55; CHECK-NEXT:    ret void56;57  call void @func2()58  call void @func3()59  ret void60}61 62attributes #0 = { "uniform-work-group-size"="false" }63;.64; CHECK: attributes #[[ATTR0]] = { "amdgpu-no-cluster-id-x" "amdgpu-no-cluster-id-y" "amdgpu-no-cluster-id-z" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-flat-scratch-init" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "uniform-work-group-size"="false" }65;.66