19 lines · plain
1; RUN: opt -mtriple=amdgcn-- -codegenprepare -S < %s | FileCheck -check-prefix=OPT %s2; RUN: llc -mtriple=amdgcn -mcpu=verde < %s | FileCheck -check-prefix=SI-LLC %s3 4; OPT-LABEL: @test(5; OPT: mul nsw i326; OPT-NEXT: sext7 8; SI-LLC-LABEL: {{^}}test:9; SI-LLC: s_mul_i3210; SI-LLC-NOT: mul11define amdgpu_kernel void @test(ptr addrspace(1) nocapture readonly %in, i32 %a, i8 %b) {12entry:13 %0 = mul nsw i32 %a, 314 %1 = sext i32 %0 to i6415 %2 = getelementptr i8, ptr addrspace(1) %in, i64 %116 store i8 %b, ptr addrspace(1) %217 ret void18}19