28 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=gfx908 < %s | FileCheck -check-prefixes=GCN,GFX908 %s2; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefixes=GCN,GFX900 %s3 4define void @foo() {5bb:6 ret void7}8 9; FIXME: We spill v40 into AGPR, but still save and restore FP10; which is not needed in this case.11 12; GCN-LABEL: {{^}}caller:13 14; GCN: s_mov_b32 [[TMP_SGPR:s[0-9]+]], s3315; GCN: s_mov_b32 s33, s3216; GFX900: buffer_store_dword17; GFX908-DAG: v_accvgpr_write_b3218; GCN: s_swappc_b6419; GFX900: buffer_load_dword20; GFX908: v_accvgpr_read_b3221; GCN: s_mov_b32 s33, [[TMP_SGPR]]22define i64 @caller() {23bb:24 call void asm sideeffect "", "~{v40}" ()25 tail call void @foo()26 ret i64 027}28