aboutsummaryrefslogblamecommitdiff
path: root/test/CodeGen/AMDGPU/hsa-default-device.ll
blob: 45efe9b86557a0d72ef5baa258e0b547c7db494c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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 amdgpu_kernel void @test_kernel(float addrspace(1)* %out0, double addrspace(1)* %out1) nounwind {
  store float 0.0, float addrspace(1)* %out0
  ret void
}