Mercurial > hg > CbC > CbC_llvm
view llvm/test/CodeGen/AMDGPU/sdivrem64.r600.ll @ 206:f17a3b42b08b
Added tag before-12 for changeset b7591485f4cd
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Jun 2021 21:25:57 +0900 |
parents | 0572611fdcc8 |
children | 1f2b6ac9f198 |
line wrap: on
line source
;RUN: llc -march=r600 -mcpu=redwood -amdgpu-bypass-slow-div=0 < %s | FileCheck -check-prefix=EG %s ;EG-LABEL: {{^}}s_test_sdiv: ;EG: RECIP_UINT ;EG: LSHL {{.*}}, 1, ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT define amdgpu_kernel void @s_test_sdiv(i64 addrspace(1)* %out, i64 %x, i64 %y) { %result = sdiv i64 %x, %y store i64 %result, i64 addrspace(1)* %out ret void } ;EG-LABEL: {{^}}s_test_srem: ;EG: RECIP_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: BFE_UINT ;EG: AND_INT {{.*}}, 1, define amdgpu_kernel void @s_test_srem(i64 addrspace(1)* %out, i64 %x, i64 %y) { %result = urem i64 %x, %y store i64 %result, i64 addrspace(1)* %out ret void } ;EG-LABEL: {{^}}test_sdiv3264: ;EG: RECIP_UINT ;EG-NOT: BFE_UINT define amdgpu_kernel void @test_sdiv3264(i64 addrspace(1)* %out, i64 %x, i64 %y) { %1 = ashr i64 %x, 33 %2 = ashr i64 %y, 33 %result = sdiv i64 %1, %2 store i64 %result, i64 addrspace(1)* %out ret void } ;EG-LABEL: {{^}}test_srem3264: ;EG: RECIP_UINT ;EG-NOT: BFE_UINT define amdgpu_kernel void @test_srem3264(i64 addrspace(1)* %out, i64 %x, i64 %y) { %1 = ashr i64 %x, 33 %2 = ashr i64 %y, 33 %result = srem i64 %1, %2 store i64 %result, i64 addrspace(1)* %out ret void } ;EG-LABEL: {{^}}test_sdiv2464: ;EG: INT_TO_FLT ;EG: INT_TO_FLT ;EG: FLT_TO_INT ;EG-NOT: RECIP_UINT ;EG-NOT: BFE_UINT define amdgpu_kernel void @test_sdiv2464(i64 addrspace(1)* %out, i64 %x, i64 %y) { %1 = ashr i64 %x, 40 %2 = ashr i64 %y, 40 %result = sdiv i64 %1, %2 store i64 %result, i64 addrspace(1)* %out ret void } ;EG-LABEL: {{^}}test_srem2464: ;EG: INT_TO_FLT ;EG: INT_TO_FLT ;EG: FLT_TO_INT ;EG-NOT: RECIP_UINT ;EG-NOT: BFE_UINT define amdgpu_kernel void @test_srem2464(i64 addrspace(1)* %out, i64 %x, i64 %y) { %1 = ashr i64 %x, 40 %2 = ashr i64 %y, 40 %result = srem i64 %1, %2 store i64 %result, i64 addrspace(1)* %out ret void }