xref: /aosp_15_r20/external/llvm/test/CodeGen/AMDGPU/hsa-default-device.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; Make sure that with an HSA triple, we don't default to an
4*9880d681SAndroid Build Coastguard Worker; unsupported device.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
7*9880d681SAndroid Build Coastguard Workerdefine void @test_kernel(float addrspace(1)* %out0, double addrspace(1)* %out1) nounwind {
8*9880d681SAndroid Build Coastguard Worker  store float 0.0, float addrspace(1)* %out0
9*9880d681SAndroid Build Coastguard Worker  ret void
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12