1 ;RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG %s
3 ;EG-LABEL: {{^}}test_udiv:
36 define amdgpu_kernel void @test_udiv(i64 addrspace(1)* %out, i64 %x, i64 %y) {
37 %result = udiv i64 %x, %y
38 store i64 %result, i64 addrspace(1)* %out
42 ;EG-LABEL: {{^}}test_urem:
74 ;EG: AND_INT {{.*}}, 1,
75 define amdgpu_kernel void @test_urem(i64 addrspace(1)* %out, i64 %x, i64 %y) {
76 %result = urem i64 %x, %y
77 store i64 %result, i64 addrspace(1)* %out
81 ;EG-LABEL: {{^}}test_udiv3264:
84 define amdgpu_kernel void @test_udiv3264(i64 addrspace(1)* %out, i64 %x, i64 %y) {
87 %result = udiv i64 %1, %2
88 store i64 %result, i64 addrspace(1)* %out
92 ;EG-LABEL: {{^}}test_urem3264:
95 define amdgpu_kernel void @test_urem3264(i64 addrspace(1)* %out, i64 %x, i64 %y) {
98 %result = urem i64 %1, %2
99 store i64 %result, i64 addrspace(1)* %out
103 ;EG-LABEL: {{^}}test_udiv2364:
109 define amdgpu_kernel void @test_udiv2364(i64 addrspace(1)* %out, i64 %x, i64 %y) {
112 %result = udiv i64 %1, %2
113 store i64 %result, i64 addrspace(1)* %out
117 ;EG-LABEL: {{^}}test_urem2364:
123 define amdgpu_kernel void @test_urem2364(i64 addrspace(1)* %out, i64 %x, i64 %y) {
126 %result = urem i64 %1, %2
127 store i64 %result, i64 addrspace(1)* %out
131 ;EG-LABEL: {{^}}test_udiv_k:
132 define amdgpu_kernel void @test_udiv_k(i64 addrspace(1)* %out, i64 %x) {
133 %result = udiv i64 24, %x
134 store i64 %result, i64 addrspace(1)* %out