diff options
Diffstat (limited to 'test/CodeGen/AMDGPU/hsa-default-device.ll')
-rw-r--r-- | test/CodeGen/AMDGPU/hsa-default-device.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/AMDGPU/hsa-default-device.ll b/test/CodeGen/AMDGPU/hsa-default-device.ll new file mode 100644 index 0000000000000..631d6def44426 --- /dev/null +++ b/test/CodeGen/AMDGPU/hsa-default-device.ll @@ -0,0 +1,11 @@ +; RUN: llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s | FileCheck %s + +; Make sure that with an HSA triple, we don't default to an +; unsupported device. + +; CHECK: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU" +define void @test_kernel(float addrspace(1)* %out0, double addrspace(1)* %out1) nounwind { + store float 0.0, float addrspace(1)* %out0 + ret void +} + |