1 ; RUN: llc -mtriple=amdgcn -mcpu=gfx908 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX908 %s
2 ; RUN: llc -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX900 %s
9 ; FIXME: We spill v40 into AGPR, but still save and restore FP
10 ; which is not needed in this case.
12 ; GCN-LABEL: {{^}}caller:
14 ; GCN: s_mov_b32 [[TMP_SGPR:s[0-9]+]], s33
15 ; GCN: s_mov_b32 s33, s32
16 ; GFX900: buffer_store_dword
17 ; GFX908-DAG: v_accvgpr_write_b32
19 ; GFX900: buffer_load_dword
20 ; GFX908: v_accvgpr_read_b32
21 ; GCN: s_mov_b32 s33, [[TMP_SGPR]]
22 define i64 @caller() {
24 call void asm sideeffect "", "~{v40}" ()