[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / call-c-function.ll
blobba52577902f295129c1396a2b7700943a20e6b8d
1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 ; RUN: llc -global-isel=0 -stop-after=finalize-isel -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -verify-machineinstrs -o - %s | FileCheck -enable-var-scope %s
4 ; Test that we don't explode on calls from shaders to functions with the C calling convention.
6 define amdgpu_ps void @amdgpu_ps_call_default_cc() {
7   ; CHECK-LABEL: name: amdgpu_ps_call_default_cc
8   ; CHECK: bb.0.main_body:
9   ; CHECK-NEXT:   S_ENDPGM 0
10 main_body:
11   call void null()
12   ret void
15 define amdgpu_gfx void @amdgpu_gfx_call_default_cc() {
16   ; CHECK-LABEL: name: amdgpu_gfx_call_default_cc
17   ; CHECK: bb.0.main_body:
18   ; CHECK-NEXT:   SI_RETURN
19 main_body:
20   call void null()
21   ret void