1 ;RUN: llc -mtriple=r600 -mcpu=redwood -amdgpu-bypass-slow-div=0 < %s | FileCheck -check-prefix=EG %s
3 ;EG-LABEL: {{^}}s_test_sdiv:
36 define amdgpu_kernel void @s_test_sdiv(ptr addrspace(1) %out, i64 %x, i64 %y) {
37 %result = sdiv i64 %x, %y
38 store i64 %result, ptr addrspace(1) %out
42 ;EG-LABEL: {{^}}s_test_srem:
74 ;EG: AND_INT {{.*}}, 1,
75 define amdgpu_kernel void @s_test_srem(ptr addrspace(1) %out, i64 %x, i64 %y) {
76 %result = urem i64 %x, %y
77 store i64 %result, ptr addrspace(1) %out
81 ;EG-LABEL: {{^}}test_sdiv3264:
84 define amdgpu_kernel void @test_sdiv3264(ptr addrspace(1) %out, i64 %x, i64 %y) {
87 %result = sdiv i64 %1, %2
88 store i64 %result, ptr addrspace(1) %out
92 ;EG-LABEL: {{^}}test_srem3264:
95 define amdgpu_kernel void @test_srem3264(ptr addrspace(1) %out, i64 %x, i64 %y) {
98 %result = srem i64 %1, %2
99 store i64 %result, ptr addrspace(1) %out
103 ;EG-LABEL: {{^}}test_sdiv2464:
109 define amdgpu_kernel void @test_sdiv2464(ptr addrspace(1) %out, i64 %x, i64 %y) {
112 %result = sdiv i64 %1, %2
113 store i64 %result, ptr addrspace(1) %out
117 ;EG-LABEL: {{^}}test_srem2464:
123 define amdgpu_kernel void @test_srem2464(ptr addrspace(1) %out, i64 %x, i64 %y) {
126 %result = srem i64 %1, %2
127 store i64 %result, ptr addrspace(1) %out