1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -o - %s | FileCheck -check-prefix=GFX10 %s
3 ; Make sure new higher SGPRs are callee saved
4 ; GFX10-LABEL: {{^}}callee_new_sgprs:
5 ; GFX10: v_writelane_b32 v0, s104, 0
6 ; GFX10: v_writelane_b32 v0, s105, 1
7 ; GFX10: ; clobber s104
8 ; GFX10: ; clobber s105
9 ; GFX10: v_readlane_b32 s105, v0, 1
10 ; GFX10: v_readlane_b32 s104, v0, 0
11 define void @callee_new_sgprs() {
12 call void asm sideeffect "; clobber s104", "~{s104}"()
13 call void asm sideeffect "; clobber s105", "~{s105}"()