; Check info on flat address space memory accesses when the target is amdgpu. ; ; The target matters because kernel-info calls ; TargetTransformInfo::getFlatAddressSpace to select the flat address space. ; REQUIRES: amdgpu-registered-target ; RUN: opt -pass-remarks=kernel-info -passes=kernel-info \ ; RUN: -mtriple="amdgcn-amd-amdhsa" \ ; RUN: -disable-output %S/Inputs/test.ll 2>&1 | \ ; RUN: FileCheck -match-full-lines -implicit-check-not='flat address space' \ ; RUN: %S/Inputs/test.ll