1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -stop-after=finalize-isel -o - %s | FileCheck %s 3 4; Make sure we only use one 128-bit register instead of 2 for i128 asm 5; constraints 6 7define amdgpu_kernel void @s_input_output_i128() { 8 ; CHECK-LABEL: name: s_input_output_i128 9 ; CHECK: bb.0 (%ir-block.0): 10 ; CHECK: INLINEASM &"; def $0", 1 /* sideeffect attdialect */, 4128778 /* regdef:SGPR_128 */, def %4 11 ; CHECK: [[COPY:%[0-9]+]]:sgpr_128 = COPY %4 12 ; CHECK: INLINEASM &"; use $0", 1 /* sideeffect attdialect */, 4128777 /* reguse:SGPR_128 */, [[COPY]] 13 ; CHECK: S_ENDPGM 0 14 %val = tail call i128 asm sideeffect "; def $0", "=s"() 15 call void asm sideeffect "; use $0", "s"(i128 %val) 16 ret void 17} 18 19define amdgpu_kernel void @v_input_output_i128() { 20 ; CHECK-LABEL: name: v_input_output_i128 21 ; CHECK: bb.0 (%ir-block.0): 22 ; CHECK: INLINEASM &"; def $0", 1 /* sideeffect attdialect */, 3997706 /* regdef:VReg_128 */, def %4 23 ; CHECK: [[COPY:%[0-9]+]]:vreg_128 = COPY %4 24 ; CHECK: INLINEASM &"; use $0", 1 /* sideeffect attdialect */, 3997705 /* reguse:VReg_128 */, [[COPY]] 25 ; CHECK: S_ENDPGM 0 26 %val = tail call i128 asm sideeffect "; def $0", "=v"() 27 call void asm sideeffect "; use $0", "v"(i128 %val) 28 ret void 29} 30 31define amdgpu_kernel void @a_input_output_i128() { 32 ; CHECK-LABEL: name: a_input_output_i128 33 ; CHECK: bb.0 (%ir-block.0): 34 ; CHECK: INLINEASM &"; def $0", 1 /* sideeffect attdialect */, 3932170 /* regdef:AReg_128 */, def %4 35 ; CHECK: [[COPY:%[0-9]+]]:areg_128 = COPY %4 36 ; CHECK: INLINEASM &"; use $0", 1 /* sideeffect attdialect */, 3932169 /* reguse:AReg_128 */, [[COPY]] 37 ; CHECK: S_ENDPGM 0 38 %val = call i128 asm sideeffect "; def $0", "=a"() 39 call void asm sideeffect "; use $0", "a"(i128 %val) 40 ret void 41} 42