llvm.org GIT mirror llvm / 50c1c91
R600: Add v2i32 test for setcc on evergreen No test/expansion for SI has been added yet. Attempts to expand this operation for SI resulted in a stacktrace in (IIRC) LegalizeIntegerTypes which was complaining about vector comparisons being required to return a vector type. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184845 91177308-0d34-0410-b5e6-96231b3b80d8 Aaron Watry 6 years ago
1 changed file(s) with 22 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
1 ;CHECK: SETE_INT T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
0 ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=EG-CHECK %s
21
3 define void @test(<4 x i32> addrspace(1)* %out, <4 x i32> addrspace(1)* %in) {
2 ;EG-CHECK: @test2
3 ;EG-CHECK: SETE_INT {{\*? *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
4 ;EG-CHECK: SETE_INT {{\*? *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
5
6 define void @test2(<2 x i32> addrspace(1)* %out, <2 x i32> addrspace(1)* %in) {
7 %b_ptr = getelementptr <2 x i32> addrspace(1)* %in, i32 1
8 %a = load <2 x i32> addrspace(1) * %in
9 %b = load <2 x i32> addrspace(1) * %b_ptr
10 %result = icmp eq <2 x i32> %a, %b
11 %sext = sext <2 x i1> %result to <2 x i32>
12 store <2 x i32> %sext, <2 x i32> addrspace(1)* %out
13 ret void
14 }
15
16 ;EG-CHECK: @test4
17 ;EG-CHECK: SETE_INT {{\*? *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
18 ;EG-CHECK: SETE_INT {{\*? *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
19 ;EG-CHECK: SETE_INT {{\*? *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
20 ;EG-CHECK: SETE_INT {{\*? *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
21
22 define void @test4(<4 x i32> addrspace(1)* %out, <4 x i32> addrspace(1)* %in) {
423 %b_ptr = getelementptr <4 x i32> addrspace(1)* %in, i32 1
524 %a = load <4 x i32> addrspace(1) * %in
625 %b = load <4 x i32> addrspace(1) * %b_ptr