annotate llvm/test/CodeGen/AMDGPU/xfail.r600.bitcast.ll @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: llc -march=r600 -mcpu=cypress < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s
anatofuz
parents:
diff changeset
2 ; XFAIL: *
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 ; This is the failing part of the r600 bitacts tests
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 ; TODO: enable doubles
anatofuz
parents:
diff changeset
7 ; FUNC-LABEL: {{^}}bitcast_f64_to_v2i32:
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
8 define amdgpu_kernel void @bitcast_f64_to_v2i32(ptr addrspace(1) %out, ptr addrspace(1) %in) {
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 %val = load double, ptr addrspace(1) %in, align 8
150
anatofuz
parents:
diff changeset
10 %add = fadd double %val, 4.0
anatofuz
parents:
diff changeset
11 %bc = bitcast double %add to <2 x i32>
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
12 store <2 x i32> %bc, ptr addrspace(1) %out, align 8
150
anatofuz
parents:
diff changeset
13 ret void
anatofuz
parents:
diff changeset
14 }
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 ; FUNC-LABEL: {{^}}bitcast_v2i64_to_v2f64:
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 define amdgpu_kernel void @bitcast_v2i64_to_v2f64(i32 %cond, ptr addrspace(1) %out, <2 x i64> %value) {
150
anatofuz
parents:
diff changeset
18 entry:
anatofuz
parents:
diff changeset
19 %cmp0 = icmp eq i32 %cond, 0
anatofuz
parents:
diff changeset
20 br i1 %cmp0, label %if, label %end
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 if:
anatofuz
parents:
diff changeset
23 %cast = bitcast <2 x i64> %value to <2 x double>
anatofuz
parents:
diff changeset
24 br label %end
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 end:
anatofuz
parents:
diff changeset
27 %phi = phi <2 x double> [zeroinitializer, %entry], [%cast, %if]
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
28 store <2 x double> %phi, ptr addrspace(1) %out
150
anatofuz
parents:
diff changeset
29 ret void
anatofuz
parents:
diff changeset
30 }
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 ; FUNC-LABEL: {{^}}bitcast_v2f64_to_v2i64:
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
33 define amdgpu_kernel void @bitcast_v2f64_to_v2i64(i32 %cond, ptr addrspace(1) %out, <2 x double> %value) {
150
anatofuz
parents:
diff changeset
34 entry:
anatofuz
parents:
diff changeset
35 %cmp0 = icmp eq i32 %cond, 0
anatofuz
parents:
diff changeset
36 br i1 %cmp0, label %if, label %end
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 if:
anatofuz
parents:
diff changeset
39 %cast = bitcast <2 x double> %value to <2 x i64>
anatofuz
parents:
diff changeset
40 br label %end
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 end:
anatofuz
parents:
diff changeset
43 %phi = phi <2 x i64> [zeroinitializer, %entry], [%cast, %if]
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
44 store <2 x i64> %phi, ptr addrspace(1) %out
150
anatofuz
parents:
diff changeset
45 ret void
anatofuz
parents:
diff changeset
46 }