annotate llvm/test/CodeGen/AMDGPU/fp_to_sint.ll @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children 5f17cb93ff66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 ; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck %s --check-prefixes=SI
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 ; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck %s --check-prefixes=VI
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 ; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck %s --check-prefixes=EG
150
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 declare float @llvm.fabs.f32(float) #1
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 define amdgpu_kernel void @fp_to_sint_i32(i32 addrspace(1)* %out, float %in) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 ; SI-LABEL: fp_to_sint_i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
10 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
11 ; SI-NEXT: s_load_dword s4, s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
12 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
13 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
14 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
15 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 ; SI-NEXT: v_cvt_i32_f32_e32 v0, s4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 ; SI-NEXT: buffer_store_dword v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
18 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
19 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
20 ; VI-LABEL: fp_to_sint_i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
21 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
22 ; VI-NEXT: s_load_dword s2, s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
23 ; VI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
24 ; VI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
25 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
26 ; VI-NEXT: v_cvt_i32_f32_e32 v0, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
27 ; VI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
28 ; VI-NEXT: buffer_store_dword v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
29 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
30 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
31 ; EG-LABEL: fp_to_sint_i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
32 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
33 ; EG-NEXT: ALU 3, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
34 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T0.X, T1.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
35 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
36 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
37 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
38 ; EG-NEXT: TRUNC * T0.W, KC0[2].Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
39 ; EG-NEXT: FLT_TO_INT T0.X, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
40 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
41 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
42 %conv = fptosi float %in to i32
anatofuz
parents:
diff changeset
43 store i32 %conv, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
44 ret void
anatofuz
parents:
diff changeset
45 }
anatofuz
parents:
diff changeset
46
anatofuz
parents:
diff changeset
47 define amdgpu_kernel void @fp_to_sint_i32_fabs(i32 addrspace(1)* %out, float %in) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
48 ; SI-LABEL: fp_to_sint_i32_fabs:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
49 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
50 ; SI-NEXT: s_load_dword s4, s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
51 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
52 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
53 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
54 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
55 ; SI-NEXT: v_cvt_i32_f32_e64 v0, |s4|
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
56 ; SI-NEXT: buffer_store_dword v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
57 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
58 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
59 ; VI-LABEL: fp_to_sint_i32_fabs:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
60 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
61 ; VI-NEXT: s_load_dword s2, s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
62 ; VI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
63 ; VI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
64 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
65 ; VI-NEXT: v_cvt_i32_f32_e64 v0, |s2|
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
66 ; VI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
67 ; VI-NEXT: buffer_store_dword v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
68 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
69 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
70 ; EG-LABEL: fp_to_sint_i32_fabs:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
71 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
72 ; EG-NEXT: ALU 3, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
73 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T0.X, T1.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
74 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
75 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
76 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
77 ; EG-NEXT: TRUNC * T0.W, |KC0[2].Z|,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
78 ; EG-NEXT: FLT_TO_INT T0.X, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
79 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
80 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
81 %in.fabs = call float @llvm.fabs.f32(float %in)
anatofuz
parents:
diff changeset
82 %conv = fptosi float %in.fabs to i32
anatofuz
parents:
diff changeset
83 store i32 %conv, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
84 ret void
anatofuz
parents:
diff changeset
85 }
anatofuz
parents:
diff changeset
86
anatofuz
parents:
diff changeset
87 define amdgpu_kernel void @fp_to_sint_v2i32(<2 x i32> addrspace(1)* %out, <2 x float> %in) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
88 ; SI-LABEL: fp_to_sint_v2i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
89 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
90 ; SI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
91 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
92 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
93 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
94 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
95 ; SI-NEXT: v_cvt_i32_f32_e32 v1, s5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
96 ; SI-NEXT: v_cvt_i32_f32_e32 v0, s4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
97 ; SI-NEXT: buffer_store_dwordx2 v[0:1], off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
98 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
99 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
100 ; VI-LABEL: fp_to_sint_v2i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
101 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
102 ; VI-NEXT: s_load_dwordx2 s[2:3], s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
103 ; VI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
104 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
105 ; VI-NEXT: v_cvt_i32_f32_e32 v1, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
106 ; VI-NEXT: v_cvt_i32_f32_e32 v0, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
107 ; VI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
108 ; VI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
109 ; VI-NEXT: buffer_store_dwordx2 v[0:1], off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
110 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
111 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
112 ; EG-LABEL: fp_to_sint_v2i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
113 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
114 ; EG-NEXT: ALU 5, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
115 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T0.XY, T1.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
116 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
117 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
118 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
119 ; EG-NEXT: TRUNC * T0.W, KC0[3].X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
120 ; EG-NEXT: FLT_TO_INT T0.Y, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
121 ; EG-NEXT: TRUNC * T0.W, KC0[2].W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
122 ; EG-NEXT: FLT_TO_INT T0.X, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
123 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
124 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
125 %result = fptosi <2 x float> %in to <2 x i32>
anatofuz
parents:
diff changeset
126 store <2 x i32> %result, <2 x i32> addrspace(1)* %out
anatofuz
parents:
diff changeset
127 ret void
anatofuz
parents:
diff changeset
128 }
anatofuz
parents:
diff changeset
129
anatofuz
parents:
diff changeset
130 define amdgpu_kernel void @fp_to_sint_v4i32(<4 x i32> addrspace(1)* %out, <4 x float> addrspace(1)* %in) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
131 ; SI-LABEL: fp_to_sint_v4i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
132 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
133 ; SI-NEXT: s_load_dwordx4 s[0:3], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
134 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
135 ; SI-NEXT: s_load_dwordx4 s[4:7], s[2:3], 0x0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
136 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
137 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
138 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
139 ; SI-NEXT: v_cvt_i32_f32_e32 v3, s7
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
140 ; SI-NEXT: v_cvt_i32_f32_e32 v2, s6
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
141 ; SI-NEXT: v_cvt_i32_f32_e32 v1, s5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
142 ; SI-NEXT: v_cvt_i32_f32_e32 v0, s4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
143 ; SI-NEXT: buffer_store_dwordx4 v[0:3], off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
144 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
145 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
146 ; VI-LABEL: fp_to_sint_v4i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
147 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
148 ; VI-NEXT: s_load_dwordx4 s[0:3], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
149 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
150 ; VI-NEXT: s_load_dwordx4 s[4:7], s[2:3], 0x0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
151 ; VI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
152 ; VI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
153 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
154 ; VI-NEXT: v_cvt_i32_f32_e32 v3, s7
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
155 ; VI-NEXT: v_cvt_i32_f32_e32 v2, s6
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
156 ; VI-NEXT: v_cvt_i32_f32_e32 v1, s5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
157 ; VI-NEXT: v_cvt_i32_f32_e32 v0, s4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
158 ; VI-NEXT: buffer_store_dwordx4 v[0:3], off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
159 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
160 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
161 ; EG-LABEL: fp_to_sint_v4i32:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
162 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
163 ; EG-NEXT: ALU 0, @8, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
164 ; EG-NEXT: TEX 0 @6
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
165 ; EG-NEXT: ALU 9, @9, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
166 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T0.XYZW, T1.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
167 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
168 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
169 ; EG-NEXT: Fetch clause starting at 6:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
170 ; EG-NEXT: VTX_READ_128 T0.XYZW, T0.X, 0, #1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
171 ; EG-NEXT: ALU clause starting at 8:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
172 ; EG-NEXT: MOV * T0.X, KC0[2].Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
173 ; EG-NEXT: ALU clause starting at 9:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
174 ; EG-NEXT: TRUNC T0.W, T0.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
175 ; EG-NEXT: TRUNC * T1.W, T0.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
176 ; EG-NEXT: FLT_TO_INT * T0.W, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
177 ; EG-NEXT: FLT_TO_INT T0.Z, T1.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
178 ; EG-NEXT: TRUNC * T1.W, T0.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
179 ; EG-NEXT: FLT_TO_INT T0.Y, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
180 ; EG-NEXT: TRUNC * T1.W, T0.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
181 ; EG-NEXT: FLT_TO_INT T0.X, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
182 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
183 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
184 %value = load <4 x float>, <4 x float> addrspace(1) * %in
anatofuz
parents:
diff changeset
185 %result = fptosi <4 x float> %value to <4 x i32>
anatofuz
parents:
diff changeset
186 store <4 x i32> %result, <4 x i32> addrspace(1)* %out
anatofuz
parents:
diff changeset
187 ret void
anatofuz
parents:
diff changeset
188 }
anatofuz
parents:
diff changeset
189
anatofuz
parents:
diff changeset
190 ; Check that the compiler doesn't crash with a "cannot select" error
anatofuz
parents:
diff changeset
191 define amdgpu_kernel void @fp_to_sint_i64 (i64 addrspace(1)* %out, float %in) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
192 ; SI-LABEL: fp_to_sint_i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
193 ; SI: ; %bb.0: ; %entry
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
194 ; SI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
195 ; SI-NEXT: s_load_dword s0, s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
196 ; SI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
197 ; SI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
198 ; SI-NEXT: s_mov_b32 s1, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
199 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
200 ; SI-NEXT: s_bfe_u32 s8, s0, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
201 ; SI-NEXT: s_and_b32 s2, s0, 0x7fffff
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
202 ; SI-NEXT: s_ashr_i32 s9, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
203 ; SI-NEXT: s_add_i32 s3, s8, 0xffffff6a
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
204 ; SI-NEXT: s_or_b32 s0, s2, 0x800000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
205 ; SI-NEXT: s_sub_i32 s10, 0x96, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
206 ; SI-NEXT: s_ashr_i32 s11, s9, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
207 ; SI-NEXT: s_lshl_b64 s[2:3], s[0:1], s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
208 ; SI-NEXT: s_lshr_b64 s[0:1], s[0:1], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
209 ; SI-NEXT: s_addk_i32 s8, 0xff81
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
210 ; SI-NEXT: v_mov_b32_e32 v0, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
211 ; SI-NEXT: v_mov_b32_e32 v1, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
212 ; SI-NEXT: v_mov_b32_e32 v2, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
213 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s8, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
214 ; SI-NEXT: v_cndmask_b32_e32 v1, v1, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
215 ; SI-NEXT: v_mov_b32_e32 v2, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
216 ; SI-NEXT: v_mov_b32_e32 v3, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
217 ; SI-NEXT: v_cndmask_b32_e32 v2, v2, v3, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
218 ; SI-NEXT: v_xor_b32_e32 v1, s11, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
219 ; SI-NEXT: v_xor_b32_e32 v2, s9, v2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
220 ; SI-NEXT: v_subrev_i32_e32 v2, vcc, s9, v2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
221 ; SI-NEXT: v_subb_u32_e32 v0, vcc, v1, v0, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
222 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s8, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
223 ; SI-NEXT: v_cndmask_b32_e64 v1, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
224 ; SI-NEXT: v_cndmask_b32_e64 v0, v2, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
225 ; SI-NEXT: buffer_store_dwordx2 v[0:1], off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
226 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
227 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
228 ; VI-LABEL: fp_to_sint_i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
229 ; VI: ; %bb.0: ; %entry
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
230 ; VI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
231 ; VI-NEXT: s_load_dword s8, s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
232 ; VI-NEXT: s_mov_b32 s1, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
233 ; VI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
234 ; VI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
235 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
236 ; VI-NEXT: s_bfe_u32 s9, s8, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
237 ; VI-NEXT: s_and_b32 s0, s8, 0x7fffff
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
238 ; VI-NEXT: s_add_i32 s2, s9, 0xffffff6a
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
239 ; VI-NEXT: s_bitset1_b32 s0, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
240 ; VI-NEXT: s_sub_i32 s10, 0x96, s9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
241 ; VI-NEXT: s_lshl_b64 s[2:3], s[0:1], s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
242 ; VI-NEXT: s_lshr_b64 s[0:1], s[0:1], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
243 ; VI-NEXT: s_addk_i32 s9, 0xff81
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
244 ; VI-NEXT: v_mov_b32_e32 v0, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
245 ; VI-NEXT: v_mov_b32_e32 v1, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
246 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s9, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
247 ; VI-NEXT: v_cndmask_b32_e32 v0, v0, v1, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
248 ; VI-NEXT: v_mov_b32_e32 v1, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
249 ; VI-NEXT: v_mov_b32_e32 v2, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
250 ; VI-NEXT: s_ashr_i32 s0, s8, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
251 ; VI-NEXT: v_cndmask_b32_e32 v1, v1, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
252 ; VI-NEXT: s_ashr_i32 s1, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
253 ; VI-NEXT: v_xor_b32_e32 v1, s0, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
254 ; VI-NEXT: v_xor_b32_e32 v0, s1, v0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
255 ; VI-NEXT: v_mov_b32_e32 v2, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
256 ; VI-NEXT: v_subrev_u32_e32 v3, vcc, s0, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
257 ; VI-NEXT: v_subb_u32_e32 v0, vcc, v0, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
258 ; VI-NEXT: v_cmp_lt_i32_e64 s[0:1], s9, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
259 ; VI-NEXT: v_cndmask_b32_e64 v1, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
260 ; VI-NEXT: v_cndmask_b32_e64 v0, v3, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
261 ; VI-NEXT: buffer_store_dwordx2 v[0:1], off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
262 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
263 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
264 ; EG-LABEL: fp_to_sint_i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
265 ; EG: ; %bb.0: ; %entry
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
266 ; EG-NEXT: ALU 41, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
267 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T0.XY, T1.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
268 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
269 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
270 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
271 ; EG-NEXT: MOV * T0.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
272 ; EG-NEXT: 8(1.121039e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
273 ; EG-NEXT: BFE_UINT T0.W, KC0[2].Z, literal.x, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
274 ; EG-NEXT: AND_INT * T1.W, KC0[2].Z, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
275 ; EG-NEXT: 23(3.222986e-44), 8388607(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
276 ; EG-NEXT: OR_INT T1.W, PS, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
277 ; EG-NEXT: ADD_INT * T2.W, PV.W, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
278 ; EG-NEXT: 8388608(1.175494e-38), -150(nan)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
279 ; EG-NEXT: ADD_INT T0.X, T0.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
280 ; EG-NEXT: SUB_INT T0.Y, literal.y, T0.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
281 ; EG-NEXT: AND_INT T0.Z, PS, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
282 ; EG-NEXT: NOT_INT T0.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
283 ; EG-NEXT: LSHR * T3.W, PV.W, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
284 ; EG-NEXT: -127(nan), 150(2.101948e-43)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
285 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
286 ; EG-NEXT: BIT_ALIGN_INT T1.X, 0.0, PS, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
287 ; EG-NEXT: LSHL T1.Y, T1.W, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
288 ; EG-NEXT: AND_INT T0.Z, T2.W, literal.x, BS:VEC_120/SCL_212
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
289 ; EG-NEXT: BIT_ALIGN_INT T0.W, 0.0, T1.W, PV.Y, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
290 ; EG-NEXT: AND_INT * T1.W, PV.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
291 ; EG-NEXT: 32(4.484155e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
292 ; EG-NEXT: CNDE_INT T0.Y, PS, PV.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
293 ; EG-NEXT: CNDE_INT T1.Z, PV.Z, PV.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
294 ; EG-NEXT: CNDE_INT T0.W, PV.Z, PV.X, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
295 ; EG-NEXT: SETGT_INT * T1.W, T0.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
296 ; EG-NEXT: 23(3.222986e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
297 ; EG-NEXT: CNDE_INT T0.Z, PS, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
298 ; EG-NEXT: CNDE_INT T0.W, PS, PV.Y, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
299 ; EG-NEXT: ASHR * T1.W, KC0[2].Z, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
300 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
301 ; EG-NEXT: XOR_INT T0.W, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
302 ; EG-NEXT: XOR_INT * T2.W, PV.Z, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
303 ; EG-NEXT: SUB_INT T2.W, PS, T1.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
304 ; EG-NEXT: SUBB_UINT * T3.W, PV.W, T1.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
305 ; EG-NEXT: SUB_INT T2.W, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
306 ; EG-NEXT: SETGT_INT * T3.W, T0.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
307 ; EG-NEXT: -1(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
308 ; EG-NEXT: CNDE_INT T0.Y, PS, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
309 ; EG-NEXT: SUB_INT * T0.W, T0.W, T1.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
310 ; EG-NEXT: CNDE_INT T0.X, T3.W, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
311 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
312 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
313 entry:
anatofuz
parents:
diff changeset
314 %0 = fptosi float %in to i64
anatofuz
parents:
diff changeset
315 store i64 %0, i64 addrspace(1)* %out
anatofuz
parents:
diff changeset
316 ret void
anatofuz
parents:
diff changeset
317 }
anatofuz
parents:
diff changeset
318
anatofuz
parents:
diff changeset
319 define amdgpu_kernel void @fp_to_sint_v2i64(<2 x i64> addrspace(1)* %out, <2 x float> %x) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
320 ; SI-LABEL: fp_to_sint_v2i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
321 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
322 ; SI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
323 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
324 ; SI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
325 ; SI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
326 ; SI-NEXT: s_movk_i32 s8, 0xff6a
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
327 ; SI-NEXT: s_mov_b32 s2, 0x7fffff
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
328 ; SI-NEXT: s_mov_b32 s10, 0x800000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
329 ; SI-NEXT: s_mov_b32 s3, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
330 ; SI-NEXT: s_movk_i32 s9, 0x96
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
331 ; SI-NEXT: s_movk_i32 s11, 0xff81
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
332 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
333 ; SI-NEXT: s_bfe_u32 s12, s1, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
334 ; SI-NEXT: s_and_b32 s13, s1, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
335 ; SI-NEXT: s_ashr_i32 s14, s1, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
336 ; SI-NEXT: s_bfe_u32 s1, s0, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
337 ; SI-NEXT: s_and_b32 s15, s0, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
338 ; SI-NEXT: s_ashr_i32 s16, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
339 ; SI-NEXT: s_add_i32 s0, s12, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
340 ; SI-NEXT: s_or_b32 s2, s13, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
341 ; SI-NEXT: s_sub_i32 s13, s9, s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
342 ; SI-NEXT: s_add_i32 s12, s12, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
343 ; SI-NEXT: s_ashr_i32 s17, s14, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
344 ; SI-NEXT: s_add_i32 s18, s1, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
345 ; SI-NEXT: s_sub_i32 s19, s9, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
346 ; SI-NEXT: s_add_i32 s11, s1, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
347 ; SI-NEXT: s_ashr_i32 s20, s16, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
348 ; SI-NEXT: s_lshl_b64 s[0:1], s[2:3], s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
349 ; SI-NEXT: s_lshr_b64 s[8:9], s[2:3], s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
350 ; SI-NEXT: v_mov_b32_e32 v0, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
351 ; SI-NEXT: s_or_b32 s2, s15, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
352 ; SI-NEXT: v_mov_b32_e32 v1, s20
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
353 ; SI-NEXT: v_mov_b32_e32 v2, s9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
354 ; SI-NEXT: v_mov_b32_e32 v3, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
355 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s12, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
356 ; SI-NEXT: v_cndmask_b32_e32 v2, v2, v3, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
357 ; SI-NEXT: v_mov_b32_e32 v3, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
358 ; SI-NEXT: v_mov_b32_e32 v4, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
359 ; SI-NEXT: s_lshl_b64 s[0:1], s[2:3], s18
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
360 ; SI-NEXT: s_lshr_b64 s[2:3], s[2:3], s19
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
361 ; SI-NEXT: v_cndmask_b32_e32 v3, v3, v4, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
362 ; SI-NEXT: v_xor_b32_e32 v2, s17, v2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
363 ; SI-NEXT: v_mov_b32_e32 v4, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
364 ; SI-NEXT: v_mov_b32_e32 v5, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
365 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s11, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
366 ; SI-NEXT: v_cndmask_b32_e32 v4, v4, v5, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
367 ; SI-NEXT: v_mov_b32_e32 v5, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
368 ; SI-NEXT: v_mov_b32_e32 v6, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
369 ; SI-NEXT: v_xor_b32_e32 v3, s14, v3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
370 ; SI-NEXT: v_cndmask_b32_e32 v5, v5, v6, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
371 ; SI-NEXT: v_xor_b32_e32 v4, s20, v4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
372 ; SI-NEXT: v_subrev_i32_e32 v6, vcc, s14, v3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
373 ; SI-NEXT: v_subb_u32_e32 v0, vcc, v2, v0, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
374 ; SI-NEXT: v_xor_b32_e32 v5, s16, v5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
375 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s12, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
376 ; SI-NEXT: v_cndmask_b32_e64 v3, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
377 ; SI-NEXT: v_cndmask_b32_e64 v2, v6, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
378 ; SI-NEXT: v_subrev_i32_e32 v0, vcc, s16, v5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
379 ; SI-NEXT: v_subb_u32_e32 v1, vcc, v4, v1, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
380 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s11, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
381 ; SI-NEXT: v_cndmask_b32_e64 v1, v1, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
382 ; SI-NEXT: v_cndmask_b32_e64 v0, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
383 ; SI-NEXT: buffer_store_dwordx4 v[0:3], off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
384 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
385 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
386 ; VI-LABEL: fp_to_sint_v2i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
387 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
388 ; VI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
389 ; VI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
390 ; VI-NEXT: s_mov_b32 s14, 0x7fffff
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
391 ; VI-NEXT: s_movk_i32 s12, 0xff6a
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
392 ; VI-NEXT: s_mov_b32 s15, 0x800000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
393 ; VI-NEXT: s_movk_i32 s16, 0x96
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
394 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
395 ; VI-NEXT: s_bfe_u32 s13, s1, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
396 ; VI-NEXT: s_and_b32 s2, s1, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
397 ; VI-NEXT: s_add_i32 s8, s13, s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
398 ; VI-NEXT: s_or_b32 s2, s2, s15
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
399 ; VI-NEXT: s_mov_b32 s3, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
400 ; VI-NEXT: s_sub_i32 s10, s16, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
401 ; VI-NEXT: s_movk_i32 s17, 0xff81
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
402 ; VI-NEXT: s_lshl_b64 s[8:9], s[2:3], s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
403 ; VI-NEXT: s_lshr_b64 s[10:11], s[2:3], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
404 ; VI-NEXT: s_add_i32 s13, s13, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
405 ; VI-NEXT: v_mov_b32_e32 v0, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
406 ; VI-NEXT: v_mov_b32_e32 v1, s9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
407 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s13, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
408 ; VI-NEXT: v_cndmask_b32_e32 v0, v0, v1, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
409 ; VI-NEXT: v_mov_b32_e32 v2, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
410 ; VI-NEXT: v_mov_b32_e32 v1, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
411 ; VI-NEXT: s_ashr_i32 s1, s1, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
412 ; VI-NEXT: v_cndmask_b32_e32 v1, v1, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
413 ; VI-NEXT: s_ashr_i32 s2, s1, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
414 ; VI-NEXT: v_xor_b32_e32 v1, s1, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
415 ; VI-NEXT: v_subrev_u32_e32 v1, vcc, s1, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
416 ; VI-NEXT: v_xor_b32_e32 v0, s2, v0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
417 ; VI-NEXT: v_mov_b32_e32 v2, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
418 ; VI-NEXT: s_and_b32 s2, s0, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
419 ; VI-NEXT: s_bfe_u32 s1, s0, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
420 ; VI-NEXT: v_subb_u32_e32 v0, vcc, v0, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
421 ; VI-NEXT: v_cmp_lt_i32_e64 s[8:9], s13, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
422 ; VI-NEXT: v_cndmask_b32_e64 v3, v0, 0, s[8:9]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
423 ; VI-NEXT: v_cndmask_b32_e64 v2, v1, 0, s[8:9]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
424 ; VI-NEXT: s_add_i32 s8, s1, s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
425 ; VI-NEXT: s_or_b32 s2, s2, s15
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
426 ; VI-NEXT: s_sub_i32 s10, s16, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
427 ; VI-NEXT: s_lshl_b64 s[8:9], s[2:3], s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
428 ; VI-NEXT: s_lshr_b64 s[2:3], s[2:3], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
429 ; VI-NEXT: s_add_i32 s1, s1, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
430 ; VI-NEXT: v_mov_b32_e32 v0, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
431 ; VI-NEXT: v_mov_b32_e32 v1, s9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
432 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s1, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
433 ; VI-NEXT: v_cndmask_b32_e32 v0, v0, v1, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
434 ; VI-NEXT: v_mov_b32_e32 v1, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
435 ; VI-NEXT: v_mov_b32_e32 v4, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
436 ; VI-NEXT: s_ashr_i32 s0, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
437 ; VI-NEXT: v_cndmask_b32_e32 v1, v1, v4, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
438 ; VI-NEXT: s_ashr_i32 s2, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
439 ; VI-NEXT: v_xor_b32_e32 v1, s0, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
440 ; VI-NEXT: v_subrev_u32_e32 v5, vcc, s0, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
441 ; VI-NEXT: v_xor_b32_e32 v0, s2, v0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
442 ; VI-NEXT: v_mov_b32_e32 v4, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
443 ; VI-NEXT: v_subb_u32_e32 v0, vcc, v0, v4, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
444 ; VI-NEXT: v_cmp_lt_i32_e64 s[0:1], s1, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
445 ; VI-NEXT: v_cndmask_b32_e64 v1, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
446 ; VI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
447 ; VI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
448 ; VI-NEXT: v_cndmask_b32_e64 v0, v5, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
449 ; VI-NEXT: buffer_store_dwordx4 v[0:3], off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
450 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
451 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
452 ; EG-LABEL: fp_to_sint_v2i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
453 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
454 ; EG-NEXT: ALU 77, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
455 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T1.XYZW, T0.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
456 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
457 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
458 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
459 ; EG-NEXT: MOV * T0.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
460 ; EG-NEXT: 8(1.121039e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
461 ; EG-NEXT: BFE_UINT * T1.W, KC0[2].W, literal.x, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
462 ; EG-NEXT: 23(3.222986e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
463 ; EG-NEXT: AND_INT T0.Z, KC0[2].W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
464 ; EG-NEXT: BFE_UINT T0.W, KC0[3].X, literal.y, T0.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
465 ; EG-NEXT: ADD_INT * T2.W, PV.W, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
466 ; EG-NEXT: 8388607(1.175494e-38), 23(3.222986e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
467 ; EG-NEXT: -150(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
468 ; EG-NEXT: SUB_INT T0.X, literal.x, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
469 ; EG-NEXT: SUB_INT T0.Y, literal.x, T1.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
470 ; EG-NEXT: AND_INT T1.Z, PS, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
471 ; EG-NEXT: OR_INT T3.W, PV.Z, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
472 ; EG-NEXT: AND_INT * T4.W, KC0[3].X, literal.w,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
473 ; EG-NEXT: 150(2.101948e-43), 31(4.344025e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
474 ; EG-NEXT: 8388608(1.175494e-38), 8388607(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
475 ; EG-NEXT: OR_INT T1.X, PS, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
476 ; EG-NEXT: LSHL T1.Y, PV.W, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
477 ; EG-NEXT: AND_INT T0.Z, T2.W, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
478 ; EG-NEXT: BIT_ALIGN_INT T4.W, 0.0, PV.W, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
479 ; EG-NEXT: AND_INT * T5.W, PV.Y, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
480 ; EG-NEXT: 8388608(1.175494e-38), 32(4.484155e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
481 ; EG-NEXT: CNDE_INT T2.X, PS, PV.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
482 ; EG-NEXT: CNDE_INT T0.Y, PV.Z, PV.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
483 ; EG-NEXT: ADD_INT T1.Z, T0.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
484 ; EG-NEXT: BIT_ALIGN_INT T4.W, 0.0, PV.X, T0.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
485 ; EG-NEXT: AND_INT * T5.W, T0.X, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
486 ; EG-NEXT: -150(nan), 32(4.484155e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
487 ; EG-NEXT: CNDE_INT T0.X, PS, PV.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
488 ; EG-NEXT: NOT_INT T2.Y, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
489 ; EG-NEXT: AND_INT T2.Z, PV.Z, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
490 ; EG-NEXT: NOT_INT T2.W, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
491 ; EG-NEXT: LSHR * T4.W, T1.X, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
492 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
493 ; EG-NEXT: LSHR T3.X, T3.W, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
494 ; EG-NEXT: ADD_INT T3.Y, T0.W, literal.x, BS:VEC_120/SCL_212
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
495 ; EG-NEXT: BIT_ALIGN_INT T3.Z, 0.0, PS, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
496 ; EG-NEXT: LSHL T0.W, T1.X, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
497 ; EG-NEXT: AND_INT * T2.W, T1.Z, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
498 ; EG-NEXT: -127(nan), 32(4.484155e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
499 ; EG-NEXT: CNDE_INT T1.X, PS, PV.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
500 ; EG-NEXT: CNDE_INT T4.Y, PS, PV.Z, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
501 ; EG-NEXT: SETGT_INT T1.Z, PV.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
502 ; EG-NEXT: BIT_ALIGN_INT T0.W, 0.0, PV.X, T2.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
503 ; EG-NEXT: ADD_INT * T1.W, T1.W, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
504 ; EG-NEXT: 23(3.222986e-44), -127(nan)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
505 ; EG-NEXT: CNDE_INT T3.X, T0.Z, PV.W, T1.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
506 ; EG-NEXT: SETGT_INT T1.Y, PS, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
507 ; EG-NEXT: CNDE_INT T0.Z, PV.Z, 0.0, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
508 ; EG-NEXT: CNDE_INT T0.W, PV.Z, T0.X, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
509 ; EG-NEXT: ASHR * T2.W, KC0[3].X, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
510 ; EG-NEXT: 23(3.222986e-44), 31(4.344025e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
511 ; EG-NEXT: XOR_INT T0.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
512 ; EG-NEXT: XOR_INT T2.Y, PV.Z, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
513 ; EG-NEXT: CNDE_INT T0.Z, PV.Y, 0.0, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
514 ; EG-NEXT: CNDE_INT T0.W, PV.Y, T2.X, T0.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
515 ; EG-NEXT: ASHR * T3.W, KC0[2].W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
516 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
517 ; EG-NEXT: XOR_INT T0.Y, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
518 ; EG-NEXT: XOR_INT T0.Z, PV.Z, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
519 ; EG-NEXT: SUB_INT T0.W, PV.Y, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
520 ; EG-NEXT: SUBB_UINT * T4.W, PV.X, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
521 ; EG-NEXT: SUB_INT T1.Y, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
522 ; EG-NEXT: SETGT_INT T1.Z, T3.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
523 ; EG-NEXT: SUB_INT T0.W, PV.Z, T3.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
524 ; EG-NEXT: SUBB_UINT * T4.W, PV.Y, T3.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
525 ; EG-NEXT: -1(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
526 ; EG-NEXT: SUB_INT T0.Z, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
527 ; EG-NEXT: SETGT_INT T0.W, T1.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
528 ; EG-NEXT: CNDE_INT * T1.W, PV.Z, 0.0, PV.Y, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
529 ; EG-NEXT: -1(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
530 ; EG-NEXT: CNDE_INT T1.Y, PV.W, 0.0, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
531 ; EG-NEXT: SUB_INT * T2.W, T0.X, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
532 ; EG-NEXT: CNDE_INT T1.Z, T1.Z, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
533 ; EG-NEXT: SUB_INT * T2.W, T0.Y, T3.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
534 ; EG-NEXT: CNDE_INT T1.X, T0.W, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
535 ; EG-NEXT: LSHR * T0.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
536 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
537 %conv = fptosi <2 x float> %x to <2 x i64>
anatofuz
parents:
diff changeset
538 store <2 x i64> %conv, <2 x i64> addrspace(1)* %out
anatofuz
parents:
diff changeset
539 ret void
anatofuz
parents:
diff changeset
540 }
anatofuz
parents:
diff changeset
541
anatofuz
parents:
diff changeset
542 define amdgpu_kernel void @fp_to_sint_v4i64(<4 x i64> addrspace(1)* %out, <4 x float> %x) {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
543 ; SI-LABEL: fp_to_sint_v4i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
544 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
545 ; SI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
546 ; SI-NEXT: s_load_dwordx4 s[0:3], s[0:1], 0xd
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
547 ; SI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
548 ; SI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
549 ; SI-NEXT: s_movk_i32 s10, 0xff6a
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
550 ; SI-NEXT: s_mov_b32 s8, 0x7fffff
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
551 ; SI-NEXT: s_mov_b32 s11, 0x800000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
552 ; SI-NEXT: s_mov_b32 s9, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
553 ; SI-NEXT: s_movk_i32 s12, 0x96
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
554 ; SI-NEXT: s_movk_i32 s13, 0xff81
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
555 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
556 ; SI-NEXT: s_bfe_u32 s14, s1, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
557 ; SI-NEXT: s_and_b32 s15, s1, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
558 ; SI-NEXT: s_ashr_i32 s16, s1, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
559 ; SI-NEXT: s_bfe_u32 s1, s0, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
560 ; SI-NEXT: s_and_b32 s17, s0, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
561 ; SI-NEXT: s_ashr_i32 s18, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
562 ; SI-NEXT: s_bfe_u32 s0, s3, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
563 ; SI-NEXT: s_and_b32 s19, s3, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
564 ; SI-NEXT: s_ashr_i32 s20, s3, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
565 ; SI-NEXT: s_bfe_u32 s3, s2, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
566 ; SI-NEXT: s_and_b32 s21, s2, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
567 ; SI-NEXT: s_ashr_i32 s22, s2, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
568 ; SI-NEXT: s_add_i32 s2, s14, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
569 ; SI-NEXT: s_or_b32 s8, s15, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
570 ; SI-NEXT: s_sub_i32 s15, s12, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
571 ; SI-NEXT: s_add_i32 s14, s14, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
572 ; SI-NEXT: s_ashr_i32 s23, s16, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
573 ; SI-NEXT: s_add_i32 s24, s1, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
574 ; SI-NEXT: s_sub_i32 s25, s12, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
575 ; SI-NEXT: s_add_i32 s26, s1, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
576 ; SI-NEXT: s_ashr_i32 s27, s18, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
577 ; SI-NEXT: s_add_i32 s28, s0, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
578 ; SI-NEXT: s_sub_i32 s29, s12, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
579 ; SI-NEXT: s_add_i32 s30, s0, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
580 ; SI-NEXT: s_ashr_i32 s31, s20, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
581 ; SI-NEXT: s_add_i32 s10, s3, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
582 ; SI-NEXT: s_sub_i32 s12, s12, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
583 ; SI-NEXT: s_add_i32 s13, s3, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
584 ; SI-NEXT: s_ashr_i32 s33, s22, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
585 ; SI-NEXT: s_lshl_b64 s[0:1], s[8:9], s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
586 ; SI-NEXT: s_lshr_b64 s[2:3], s[8:9], s15
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
587 ; SI-NEXT: v_mov_b32_e32 v0, s23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
588 ; SI-NEXT: s_or_b32 s8, s17, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
589 ; SI-NEXT: v_mov_b32_e32 v1, s27
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
590 ; SI-NEXT: v_mov_b32_e32 v4, s31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
591 ; SI-NEXT: v_mov_b32_e32 v5, s33
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
592 ; SI-NEXT: v_mov_b32_e32 v2, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
593 ; SI-NEXT: v_mov_b32_e32 v3, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
594 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s14, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
595 ; SI-NEXT: v_cndmask_b32_e32 v2, v2, v3, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
596 ; SI-NEXT: v_mov_b32_e32 v3, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
597 ; SI-NEXT: v_mov_b32_e32 v6, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
598 ; SI-NEXT: s_lshl_b64 s[0:1], s[8:9], s24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
599 ; SI-NEXT: s_lshr_b64 s[2:3], s[8:9], s25
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
600 ; SI-NEXT: s_or_b32 s8, s19, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
601 ; SI-NEXT: v_cndmask_b32_e32 v3, v3, v6, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
602 ; SI-NEXT: v_xor_b32_e32 v2, s23, v2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
603 ; SI-NEXT: v_mov_b32_e32 v6, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
604 ; SI-NEXT: v_mov_b32_e32 v7, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
605 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s26, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
606 ; SI-NEXT: v_cndmask_b32_e32 v6, v6, v7, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
607 ; SI-NEXT: v_mov_b32_e32 v7, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
608 ; SI-NEXT: v_mov_b32_e32 v8, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
609 ; SI-NEXT: s_lshl_b64 s[0:1], s[8:9], s28
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
610 ; SI-NEXT: s_lshr_b64 s[2:3], s[8:9], s29
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
611 ; SI-NEXT: s_or_b32 s8, s21, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
612 ; SI-NEXT: v_xor_b32_e32 v3, s16, v3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
613 ; SI-NEXT: v_cndmask_b32_e32 v7, v7, v8, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
614 ; SI-NEXT: v_xor_b32_e32 v6, s27, v6
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
615 ; SI-NEXT: v_mov_b32_e32 v8, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
616 ; SI-NEXT: v_mov_b32_e32 v9, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
617 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s30, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
618 ; SI-NEXT: v_cndmask_b32_e32 v8, v8, v9, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
619 ; SI-NEXT: v_mov_b32_e32 v9, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
620 ; SI-NEXT: v_mov_b32_e32 v10, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
621 ; SI-NEXT: s_lshl_b64 s[2:3], s[8:9], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
622 ; SI-NEXT: s_lshr_b64 s[8:9], s[8:9], s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
623 ; SI-NEXT: v_subrev_i32_e64 v11, s[0:1], s16, v3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
624 ; SI-NEXT: v_subb_u32_e64 v0, s[0:1], v2, v0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
625 ; SI-NEXT: v_xor_b32_e32 v7, s18, v7
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
626 ; SI-NEXT: v_cndmask_b32_e32 v9, v9, v10, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
627 ; SI-NEXT: v_xor_b32_e32 v8, s31, v8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
628 ; SI-NEXT: v_mov_b32_e32 v2, s9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
629 ; SI-NEXT: v_mov_b32_e32 v3, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
630 ; SI-NEXT: v_cmp_gt_i32_e64 vcc, s13, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
631 ; SI-NEXT: v_cndmask_b32_e32 v10, v2, v3, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
632 ; SI-NEXT: v_mov_b32_e32 v12, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
633 ; SI-NEXT: v_mov_b32_e32 v13, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
634 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s14, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
635 ; SI-NEXT: v_cndmask_b32_e64 v3, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
636 ; SI-NEXT: v_cndmask_b32_e64 v2, v11, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
637 ; SI-NEXT: v_subrev_i32_e64 v0, s[0:1], s18, v7
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
638 ; SI-NEXT: v_subb_u32_e64 v1, s[0:1], v6, v1, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
639 ; SI-NEXT: v_xor_b32_e32 v6, s20, v9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
640 ; SI-NEXT: v_cndmask_b32_e32 v7, v12, v13, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
641 ; SI-NEXT: v_xor_b32_e32 v9, s33, v10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
642 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s26, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
643 ; SI-NEXT: v_cndmask_b32_e64 v1, v1, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
644 ; SI-NEXT: v_cndmask_b32_e64 v0, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
645 ; SI-NEXT: v_subrev_i32_e32 v6, vcc, s20, v6
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
646 ; SI-NEXT: v_subb_u32_e32 v4, vcc, v8, v4, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
647 ; SI-NEXT: v_xor_b32_e32 v8, s22, v7
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
648 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s30, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
649 ; SI-NEXT: v_cndmask_b32_e64 v7, v4, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
650 ; SI-NEXT: v_cndmask_b32_e64 v6, v6, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
651 ; SI-NEXT: v_subrev_i32_e32 v4, vcc, s22, v8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
652 ; SI-NEXT: v_subb_u32_e32 v5, vcc, v9, v5, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
653 ; SI-NEXT: v_cmp_lt_i32_e64 s[0:1], s13, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
654 ; SI-NEXT: v_cndmask_b32_e64 v5, v5, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
655 ; SI-NEXT: v_cndmask_b32_e64 v4, v4, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
656 ; SI-NEXT: buffer_store_dwordx4 v[4:7], off, s[4:7], 0 offset:16
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
657 ; SI-NEXT: buffer_store_dwordx4 v[0:3], off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
658 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
659 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
660 ; VI-LABEL: fp_to_sint_v4i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
661 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
662 ; VI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
663 ; VI-NEXT: s_load_dwordx4 s[0:3], s[0:1], 0x34
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
664 ; VI-NEXT: s_mov_b32 s16, 0x7fffff
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
665 ; VI-NEXT: s_movk_i32 s14, 0xff6a
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
666 ; VI-NEXT: s_mov_b32 s17, 0x800000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
667 ; VI-NEXT: s_movk_i32 s18, 0x96
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
668 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
669 ; VI-NEXT: s_bfe_u32 s15, s1, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
670 ; VI-NEXT: s_and_b32 s8, s1, s16
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
671 ; VI-NEXT: s_add_i32 s10, s15, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
672 ; VI-NEXT: s_or_b32 s8, s8, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
673 ; VI-NEXT: s_mov_b32 s9, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
674 ; VI-NEXT: s_sub_i32 s12, s18, s15
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
675 ; VI-NEXT: s_movk_i32 s19, 0xff81
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
676 ; VI-NEXT: s_lshl_b64 s[10:11], s[8:9], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
677 ; VI-NEXT: s_lshr_b64 s[12:13], s[8:9], s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
678 ; VI-NEXT: s_add_i32 s15, s15, s19
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
679 ; VI-NEXT: v_mov_b32_e32 v0, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
680 ; VI-NEXT: v_mov_b32_e32 v1, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
681 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s15, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
682 ; VI-NEXT: v_cndmask_b32_e32 v0, v0, v1, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
683 ; VI-NEXT: v_mov_b32_e32 v2, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
684 ; VI-NEXT: v_mov_b32_e32 v1, s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
685 ; VI-NEXT: s_ashr_i32 s1, s1, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
686 ; VI-NEXT: v_cndmask_b32_e32 v1, v1, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
687 ; VI-NEXT: s_ashr_i32 s8, s1, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
688 ; VI-NEXT: v_xor_b32_e32 v1, s1, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
689 ; VI-NEXT: v_subrev_u32_e32 v1, vcc, s1, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
690 ; VI-NEXT: v_xor_b32_e32 v0, s8, v0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
691 ; VI-NEXT: v_mov_b32_e32 v2, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
692 ; VI-NEXT: s_and_b32 s8, s0, s16
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
693 ; VI-NEXT: s_bfe_u32 s1, s0, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
694 ; VI-NEXT: v_subb_u32_e32 v0, vcc, v0, v2, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
695 ; VI-NEXT: v_cmp_lt_i32_e64 s[10:11], s15, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
696 ; VI-NEXT: v_cndmask_b32_e64 v3, v0, 0, s[10:11]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
697 ; VI-NEXT: v_cndmask_b32_e64 v2, v1, 0, s[10:11]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
698 ; VI-NEXT: s_add_i32 s10, s1, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
699 ; VI-NEXT: s_or_b32 s8, s8, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
700 ; VI-NEXT: s_sub_i32 s12, s18, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
701 ; VI-NEXT: s_lshl_b64 s[10:11], s[8:9], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
702 ; VI-NEXT: s_lshr_b64 s[12:13], s[8:9], s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
703 ; VI-NEXT: s_add_i32 s1, s1, s19
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
704 ; VI-NEXT: v_mov_b32_e32 v0, s13
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
705 ; VI-NEXT: v_mov_b32_e32 v1, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
706 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s1, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
707 ; VI-NEXT: v_cndmask_b32_e32 v0, v0, v1, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
708 ; VI-NEXT: v_mov_b32_e32 v1, s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
709 ; VI-NEXT: v_mov_b32_e32 v4, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
710 ; VI-NEXT: s_ashr_i32 s0, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
711 ; VI-NEXT: v_cndmask_b32_e32 v1, v1, v4, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
712 ; VI-NEXT: s_ashr_i32 s8, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
713 ; VI-NEXT: v_xor_b32_e32 v1, s0, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
714 ; VI-NEXT: v_subrev_u32_e32 v5, vcc, s0, v1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
715 ; VI-NEXT: v_xor_b32_e32 v0, s8, v0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
716 ; VI-NEXT: v_mov_b32_e32 v4, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
717 ; VI-NEXT: v_subb_u32_e32 v0, vcc, v0, v4, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
718 ; VI-NEXT: v_cmp_lt_i32_e64 s[0:1], s1, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
719 ; VI-NEXT: v_cndmask_b32_e64 v1, v0, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
720 ; VI-NEXT: v_cndmask_b32_e64 v0, v5, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
721 ; VI-NEXT: s_bfe_u32 s12, s3, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
722 ; VI-NEXT: s_and_b32 s1, s3, s16
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
723 ; VI-NEXT: s_add_i32 s0, s12, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
724 ; VI-NEXT: s_or_b32 s8, s1, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
725 ; VI-NEXT: s_sub_i32 s10, s18, s12
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
726 ; VI-NEXT: s_lshl_b64 s[0:1], s[8:9], s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
727 ; VI-NEXT: s_lshr_b64 s[10:11], s[8:9], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
728 ; VI-NEXT: s_add_i32 s12, s12, s19
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
729 ; VI-NEXT: v_mov_b32_e32 v4, s11
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
730 ; VI-NEXT: v_mov_b32_e32 v5, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
731 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s12, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
732 ; VI-NEXT: v_cndmask_b32_e32 v4, v4, v5, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
733 ; VI-NEXT: v_mov_b32_e32 v6, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
734 ; VI-NEXT: v_mov_b32_e32 v5, s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
735 ; VI-NEXT: s_ashr_i32 s0, s3, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
736 ; VI-NEXT: v_cndmask_b32_e32 v5, v5, v6, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
737 ; VI-NEXT: s_ashr_i32 s1, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
738 ; VI-NEXT: v_xor_b32_e32 v5, s0, v5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
739 ; VI-NEXT: v_xor_b32_e32 v4, s1, v4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
740 ; VI-NEXT: v_mov_b32_e32 v6, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
741 ; VI-NEXT: v_subrev_u32_e32 v5, vcc, s0, v5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
742 ; VI-NEXT: v_subb_u32_e32 v4, vcc, v4, v6, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
743 ; VI-NEXT: v_cmp_lt_i32_e64 s[0:1], s12, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
744 ; VI-NEXT: s_bfe_u32 s3, s2, 0x80017
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
745 ; VI-NEXT: v_cndmask_b32_e64 v7, v4, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
746 ; VI-NEXT: v_cndmask_b32_e64 v6, v5, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
747 ; VI-NEXT: s_and_b32 s1, s2, s16
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
748 ; VI-NEXT: s_add_i32 s0, s3, s14
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
749 ; VI-NEXT: s_or_b32 s8, s1, s17
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
750 ; VI-NEXT: s_sub_i32 s10, s18, s3
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
751 ; VI-NEXT: s_lshl_b64 s[0:1], s[8:9], s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
752 ; VI-NEXT: s_lshr_b64 s[8:9], s[8:9], s10
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
753 ; VI-NEXT: s_add_i32 s3, s3, s19
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
754 ; VI-NEXT: v_mov_b32_e32 v4, s9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
755 ; VI-NEXT: v_mov_b32_e32 v5, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
756 ; VI-NEXT: v_cmp_gt_i32_e64 vcc, s3, 23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
757 ; VI-NEXT: v_cndmask_b32_e32 v4, v4, v5, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
758 ; VI-NEXT: v_mov_b32_e32 v8, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
759 ; VI-NEXT: v_mov_b32_e32 v5, s8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
760 ; VI-NEXT: s_ashr_i32 s0, s2, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
761 ; VI-NEXT: v_cndmask_b32_e32 v5, v5, v8, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
762 ; VI-NEXT: s_ashr_i32 s1, s0, 31
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
763 ; VI-NEXT: v_xor_b32_e32 v5, s0, v5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
764 ; VI-NEXT: v_xor_b32_e32 v4, s1, v4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
765 ; VI-NEXT: v_mov_b32_e32 v8, s1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
766 ; VI-NEXT: v_subrev_u32_e32 v9, vcc, s0, v5
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
767 ; VI-NEXT: v_subb_u32_e32 v4, vcc, v4, v8, vcc
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
768 ; VI-NEXT: v_cmp_lt_i32_e64 s[0:1], s3, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
769 ; VI-NEXT: v_cndmask_b32_e64 v5, v4, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
770 ; VI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
771 ; VI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
772 ; VI-NEXT: v_cndmask_b32_e64 v4, v9, 0, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
773 ; VI-NEXT: buffer_store_dwordx4 v[4:7], off, s[4:7], 0 offset:16
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
774 ; VI-NEXT: buffer_store_dwordx4 v[0:3], off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
775 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
776 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
777 ; EG-LABEL: fp_to_sint_v4i64:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
778 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
779 ; EG-NEXT: ALU 101, @6, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
780 ; EG-NEXT: ALU 58, @108, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
781 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T4.XYZW, T0.X, 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
782 ; EG-NEXT: MEM_RAT_CACHELESS STORE_RAW T6.XYZW, T2.X, 1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
783 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
784 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
785 ; EG-NEXT: ALU clause starting at 6:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
786 ; EG-NEXT: MOV * T0.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
787 ; EG-NEXT: 8(1.121039e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
788 ; EG-NEXT: BFE_UINT T1.W, KC0[4].X, literal.x, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
789 ; EG-NEXT: AND_INT * T2.W, KC0[4].X, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
790 ; EG-NEXT: 23(3.222986e-44), 8388607(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
791 ; EG-NEXT: OR_INT T0.Z, PS, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
792 ; EG-NEXT: BFE_UINT T2.W, KC0[3].Z, literal.y, T0.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
793 ; EG-NEXT: ADD_INT * T3.W, PV.W, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
794 ; EG-NEXT: 8388608(1.175494e-38), 23(3.222986e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
795 ; EG-NEXT: -150(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
796 ; EG-NEXT: ADD_INT T0.Y, PV.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
797 ; EG-NEXT: AND_INT T1.Z, PS, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
798 ; EG-NEXT: NOT_INT T4.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
799 ; EG-NEXT: LSHR * T5.W, PV.Z, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
800 ; EG-NEXT: -127(nan), 31(4.344025e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
801 ; EG-NEXT: ADD_INT T0.X, T1.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
802 ; EG-NEXT: BIT_ALIGN_INT T1.Y, 0.0, PS, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
803 ; EG-NEXT: AND_INT T2.Z, T3.W, literal.y, BS:VEC_201
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
804 ; EG-NEXT: LSHL T3.W, T0.Z, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
805 ; EG-NEXT: SUB_INT * T1.W, literal.z, T1.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
806 ; EG-NEXT: -127(nan), 32(4.484155e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
807 ; EG-NEXT: 150(2.101948e-43), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
808 ; EG-NEXT: AND_INT T1.X, PS, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
809 ; EG-NEXT: BIT_ALIGN_INT T2.Y, 0.0, T0.Z, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
810 ; EG-NEXT: AND_INT T0.Z, KC0[3].Z, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
811 ; EG-NEXT: CNDE_INT T1.W, PV.Z, PV.Y, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
812 ; EG-NEXT: SETGT_INT * T4.W, PV.X, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
813 ; EG-NEXT: 32(4.484155e-44), 8388607(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
814 ; EG-NEXT: 23(3.222986e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
815 ; EG-NEXT: CNDE_INT T2.X, PS, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
816 ; EG-NEXT: OR_INT T1.Y, PV.Z, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
817 ; EG-NEXT: ADD_INT T0.Z, T2.W, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
818 ; EG-NEXT: CNDE_INT T1.W, PV.X, PV.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
819 ; EG-NEXT: CNDE_INT * T3.W, T2.Z, T3.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
820 ; EG-NEXT: 8388608(1.175494e-38), -150(nan)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
821 ; EG-NEXT: CNDE_INT T1.X, T4.W, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
822 ; EG-NEXT: ASHR T2.Y, KC0[4].X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
823 ; EG-NEXT: AND_INT T1.Z, PV.Z, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
824 ; EG-NEXT: NOT_INT T1.W, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
825 ; EG-NEXT: LSHR * T3.W, PV.Y, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
826 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
827 ; EG-NEXT: BIT_ALIGN_INT T3.X, 0.0, PS, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
828 ; EG-NEXT: LSHL T3.Y, T1.Y, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
829 ; EG-NEXT: XOR_INT T1.Z, PV.X, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
830 ; EG-NEXT: XOR_INT T1.W, T2.X, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
831 ; EG-NEXT: SUB_INT * T2.W, literal.x, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
832 ; EG-NEXT: 150(2.101948e-43), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
833 ; EG-NEXT: AND_INT T1.X, T0.Z, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
834 ; EG-NEXT: AND_INT T4.Y, PS, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
835 ; EG-NEXT: BIT_ALIGN_INT T0.Z, 0.0, T1.Y, PS, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
836 ; EG-NEXT: SUB_INT T1.W, PV.W, T2.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
837 ; EG-NEXT: SUBB_UINT * T2.W, PV.Z, T2.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
838 ; EG-NEXT: 32(4.484155e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
839 ; EG-NEXT: SUB_INT T2.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
840 ; EG-NEXT: CNDE_INT T1.Y, PV.Y, PV.Z, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
841 ; EG-NEXT: CNDE_INT T0.Z, PV.X, T3.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
842 ; EG-NEXT: CNDE_INT T1.W, PV.X, T3.X, T3.Y, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
843 ; EG-NEXT: SETGT_INT * T2.W, T0.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
844 ; EG-NEXT: 23(3.222986e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
845 ; EG-NEXT: BFE_UINT T1.X, KC0[3].W, literal.x, T0.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
846 ; EG-NEXT: AND_INT T3.Y, KC0[3].W, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
847 ; EG-NEXT: CNDE_INT T2.Z, PS, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
848 ; EG-NEXT: CNDE_INT T1.W, PS, PV.Y, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
849 ; EG-NEXT: ASHR * T2.W, KC0[3].Z, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
850 ; EG-NEXT: 23(3.222986e-44), 8388607(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
851 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
852 ; EG-NEXT: BFE_UINT T3.X, KC0[3].Y, literal.x, T0.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
853 ; EG-NEXT: XOR_INT T1.Y, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
854 ; EG-NEXT: XOR_INT T0.Z, PV.Z, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
855 ; EG-NEXT: OR_INT T0.W, PV.Y, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
856 ; EG-NEXT: SUB_INT * T1.W, literal.z, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
857 ; EG-NEXT: 23(3.222986e-44), 8388608(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
858 ; EG-NEXT: 150(2.101948e-43), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
859 ; EG-NEXT: AND_INT T4.X, KC0[3].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
860 ; EG-NEXT: AND_INT T3.Y, PS, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
861 ; EG-NEXT: BIT_ALIGN_INT T2.Z, 0.0, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
862 ; EG-NEXT: SUB_INT T1.W, PV.Z, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
863 ; EG-NEXT: SUBB_UINT * T3.W, PV.Y, T2.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
864 ; EG-NEXT: 8388607(1.175494e-38), 32(4.484155e-44)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
865 ; EG-NEXT: SUB_INT T5.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
866 ; EG-NEXT: SETGT_INT T0.Y, T0.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
867 ; EG-NEXT: CNDE_INT T0.Z, PV.Y, PV.Z, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
868 ; EG-NEXT: OR_INT T1.W, PV.X, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
869 ; EG-NEXT: ADD_INT * T3.W, T3.X, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
870 ; EG-NEXT: -1(nan), 8388608(1.175494e-38)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
871 ; EG-NEXT: -150(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
872 ; EG-NEXT: ADD_INT T4.X, T3.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
873 ; EG-NEXT: SUB_INT T3.Y, literal.y, T3.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
874 ; EG-NEXT: AND_INT T2.Z, PS, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
875 ; EG-NEXT: NOT_INT T4.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
876 ; EG-NEXT: LSHR * T5.W, PV.W, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
877 ; EG-NEXT: -127(nan), 150(2.101948e-43)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
878 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
879 ; EG-NEXT: BIT_ALIGN_INT T3.X, 0.0, PS, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
880 ; EG-NEXT: LSHL T4.Y, T1.W, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
881 ; EG-NEXT: AND_INT T2.Z, T3.W, literal.x, BS:VEC_120/SCL_212
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
882 ; EG-NEXT: BIT_ALIGN_INT T1.W, 0.0, T1.W, PV.Y, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
883 ; EG-NEXT: AND_INT * T3.W, PV.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
884 ; EG-NEXT: 32(4.484155e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
885 ; EG-NEXT: ADD_INT T6.X, T1.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
886 ; EG-NEXT: CNDE_INT * T3.Y, PS, PV.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
887 ; EG-NEXT: -150(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
888 ; EG-NEXT: ALU clause starting at 108:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
889 ; EG-NEXT: CNDE_INT T3.Z, T2.Z, T4.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
890 ; EG-NEXT: CNDE_INT T1.W, T2.Z, T3.X, T4.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
891 ; EG-NEXT: SETGT_INT * T3.W, T4.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
892 ; EG-NEXT: 23(3.222986e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
893 ; EG-NEXT: CNDE_INT T3.X, PS, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
894 ; EG-NEXT: CNDE_INT T3.Y, PS, T3.Y, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
895 ; EG-NEXT: AND_INT T2.Z, T6.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
896 ; EG-NEXT: NOT_INT T1.W, T6.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
897 ; EG-NEXT: LSHR * T3.W, T0.W, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
898 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
899 ; EG-NEXT: ASHR T7.X, KC0[3].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
900 ; EG-NEXT: ADD_INT T4.Y, T1.X, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
901 ; EG-NEXT: BIT_ALIGN_INT T3.Z, 0.0, PS, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
902 ; EG-NEXT: LSHL T0.W, T0.W, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
903 ; EG-NEXT: AND_INT * T1.W, T6.X, literal.z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
904 ; EG-NEXT: 31(4.344025e-44), -127(nan)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
905 ; EG-NEXT: 32(4.484155e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
906 ; EG-NEXT: CNDE_INT T1.X, PS, PV.W, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
907 ; EG-NEXT: CNDE_INT T5.Y, PS, PV.Z, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
908 ; EG-NEXT: SETGT_INT T2.Z, PV.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
909 ; EG-NEXT: XOR_INT T0.W, T3.Y, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
910 ; EG-NEXT: XOR_INT * T1.W, T3.X, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
911 ; EG-NEXT: 23(3.222986e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
912 ; EG-NEXT: SUB_INT T3.X, PS, T7.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
913 ; EG-NEXT: SUBB_UINT T3.Y, PV.W, T7.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
914 ; EG-NEXT: CNDE_INT T3.Z, PV.Z, 0.0, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
915 ; EG-NEXT: CNDE_INT T1.W, PV.Z, T0.Z, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
916 ; EG-NEXT: ASHR * T3.W, KC0[3].W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
917 ; EG-NEXT: 31(4.344025e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
918 ; EG-NEXT: XOR_INT T1.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
919 ; EG-NEXT: XOR_INT T5.Y, PV.Z, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
920 ; EG-NEXT: SUB_INT T0.Z, PV.X, PV.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
921 ; EG-NEXT: SETGT_INT T1.W, T4.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
922 ; EG-NEXT: CNDE_INT * T6.W, T0.Y, 0.0, T5.X, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
923 ; EG-NEXT: -1(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
924 ; EG-NEXT: SETGT_INT T0.X, T0.X, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
925 ; EG-NEXT: CNDE_INT T6.Y, PV.W, 0.0, PV.Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
926 ; EG-NEXT: SUB_INT T0.Z, T1.Y, T2.W, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
927 ; EG-NEXT: SUB_INT T2.W, PV.Y, T3.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
928 ; EG-NEXT: SUBB_UINT * T4.W, PV.X, T3.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
929 ; EG-NEXT: -1(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
930 ; EG-NEXT: SUB_INT T3.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
931 ; EG-NEXT: SETGT_INT T1.Y, T4.Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
932 ; EG-NEXT: CNDE_INT T6.Z, T0.Y, 0.0, PV.Z, BS:VEC_120/SCL_212
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
933 ; EG-NEXT: SUB_INT T0.W, T0.W, T7.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
934 ; EG-NEXT: CNDE_INT * T4.W, PV.X, 0.0, T2.X, BS:VEC_021/SCL_122
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
935 ; EG-NEXT: -1(nan), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
936 ; EG-NEXT: CNDE_INT T6.X, T1.W, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
937 ; EG-NEXT: CNDE_INT T4.Y, PV.Y, 0.0, PV.X,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
938 ; EG-NEXT: SUB_INT T0.W, T1.Z, T2.Y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
939 ; EG-NEXT: LSHR * T2.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
940 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
941 ; EG-NEXT: CNDE_INT T4.Z, T0.X, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
942 ; EG-NEXT: SUB_INT * T0.W, T1.X, T3.W, BS:VEC_120/SCL_212
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
943 ; EG-NEXT: CNDE_INT T4.X, T1.Y, 0.0, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
944 ; EG-NEXT: ADD_INT * T0.W, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
945 ; EG-NEXT: 16(2.242078e-44), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
946 ; EG-NEXT: LSHR * T0.X, PV.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
947 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
948 %conv = fptosi <4 x float> %x to <4 x i64>
anatofuz
parents:
diff changeset
949 store <4 x i64> %conv, <4 x i64> addrspace(1)* %out
anatofuz
parents:
diff changeset
950 ret void
anatofuz
parents:
diff changeset
951 }
anatofuz
parents:
diff changeset
952
anatofuz
parents:
diff changeset
953 define amdgpu_kernel void @fp_to_uint_f32_to_i1(i1 addrspace(1)* %out, float %in) #0 {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
954 ; SI-LABEL: fp_to_uint_f32_to_i1:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
955 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
956 ; SI-NEXT: s_load_dword s4, s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
957 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
958 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
959 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
960 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
961 ; SI-NEXT: v_cmp_eq_f32_e64 s[4:5], -1.0, s4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
962 ; SI-NEXT: v_cndmask_b32_e64 v0, 0, 1, s[4:5]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
963 ; SI-NEXT: buffer_store_byte v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
964 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
965 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
966 ; VI-LABEL: fp_to_uint_f32_to_i1:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
967 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
968 ; VI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
969 ; VI-NEXT: s_load_dword s0, s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
970 ; VI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
971 ; VI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
972 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
973 ; VI-NEXT: v_cmp_eq_f32_e64 s[0:1], -1.0, s0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
974 ; VI-NEXT: v_cndmask_b32_e64 v0, 0, 1, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
975 ; VI-NEXT: buffer_store_byte v0, off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
976 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
977 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
978 ; EG-LABEL: fp_to_uint_f32_to_i1:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
979 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
980 ; EG-NEXT: ALU 12, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
981 ; EG-NEXT: MEM_RAT MSKOR T0.XW, T1.X
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
982 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
983 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
984 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
985 ; EG-NEXT: AND_INT T0.W, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
986 ; EG-NEXT: SETE_DX10 * T1.W, KC0[2].Z, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
987 ; EG-NEXT: 3(4.203895e-45), -1082130432(-1.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
988 ; EG-NEXT: AND_INT T1.W, PS, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
989 ; EG-NEXT: LSHL * T0.W, PV.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
990 ; EG-NEXT: 3(4.203895e-45), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
991 ; EG-NEXT: LSHL T0.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
992 ; EG-NEXT: LSHL * T0.W, literal.x, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
993 ; EG-NEXT: 255(3.573311e-43), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
994 ; EG-NEXT: MOV T0.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
995 ; EG-NEXT: MOV * T0.Z, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
996 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
997 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
998 %conv = fptosi float %in to i1
anatofuz
parents:
diff changeset
999 store i1 %conv, i1 addrspace(1)* %out
anatofuz
parents:
diff changeset
1000 ret void
anatofuz
parents:
diff changeset
1001 }
anatofuz
parents:
diff changeset
1002
anatofuz
parents:
diff changeset
1003 define amdgpu_kernel void @fp_to_uint_fabs_f32_to_i1(i1 addrspace(1)* %out, float %in) #0 {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1004 ; SI-LABEL: fp_to_uint_fabs_f32_to_i1:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1005 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1006 ; SI-NEXT: s_load_dword s4, s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1007 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1008 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1009 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1010 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1011 ; SI-NEXT: v_cmp_eq_f32_e64 s[4:5], -1.0, |s4|
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1012 ; SI-NEXT: v_cndmask_b32_e64 v0, 0, 1, s[4:5]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1013 ; SI-NEXT: buffer_store_byte v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1014 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1015 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1016 ; VI-LABEL: fp_to_uint_fabs_f32_to_i1:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1017 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1018 ; VI-NEXT: s_load_dwordx2 s[4:5], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1019 ; VI-NEXT: s_load_dword s0, s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1020 ; VI-NEXT: s_mov_b32 s7, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1021 ; VI-NEXT: s_mov_b32 s6, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1022 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1023 ; VI-NEXT: v_cmp_eq_f32_e64 s[0:1], -1.0, |s0|
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1024 ; VI-NEXT: v_cndmask_b32_e64 v0, 0, 1, s[0:1]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1025 ; VI-NEXT: buffer_store_byte v0, off, s[4:7], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1026 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1027 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1028 ; EG-LABEL: fp_to_uint_fabs_f32_to_i1:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1029 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1030 ; EG-NEXT: ALU 12, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1031 ; EG-NEXT: MEM_RAT MSKOR T0.XW, T1.X
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1032 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1033 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1034 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1035 ; EG-NEXT: AND_INT T0.W, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1036 ; EG-NEXT: SETE_DX10 * T1.W, |KC0[2].Z|, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1037 ; EG-NEXT: 3(4.203895e-45), -1082130432(-1.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1038 ; EG-NEXT: AND_INT T1.W, PS, 1,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1039 ; EG-NEXT: LSHL * T0.W, PV.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1040 ; EG-NEXT: 3(4.203895e-45), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1041 ; EG-NEXT: LSHL T0.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1042 ; EG-NEXT: LSHL * T0.W, literal.x, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1043 ; EG-NEXT: 255(3.573311e-43), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1044 ; EG-NEXT: MOV T0.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1045 ; EG-NEXT: MOV * T0.Z, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1046 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1047 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
1048 %in.fabs = call float @llvm.fabs.f32(float %in)
anatofuz
parents:
diff changeset
1049 %conv = fptosi float %in.fabs to i1
anatofuz
parents:
diff changeset
1050 store i1 %conv, i1 addrspace(1)* %out
anatofuz
parents:
diff changeset
1051 ret void
anatofuz
parents:
diff changeset
1052 }
anatofuz
parents:
diff changeset
1053
anatofuz
parents:
diff changeset
1054 define amdgpu_kernel void @fp_to_sint_f32_i16(i16 addrspace(1)* %out, float %in) #0 {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1055 ; SI-LABEL: fp_to_sint_f32_i16:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1056 ; SI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1057 ; SI-NEXT: s_load_dword s4, s[0:1], 0xb
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1058 ; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1059 ; SI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1060 ; SI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1061 ; SI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1062 ; SI-NEXT: v_cvt_i32_f32_e32 v0, s4
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1063 ; SI-NEXT: buffer_store_short v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1064 ; SI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1065 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1066 ; VI-LABEL: fp_to_sint_f32_i16:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1067 ; VI: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1068 ; VI-NEXT: s_load_dword s2, s[0:1], 0x2c
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1069 ; VI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x24
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1070 ; VI-NEXT: s_mov_b32 s3, 0xf000
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1071 ; VI-NEXT: s_waitcnt lgkmcnt(0)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1072 ; VI-NEXT: v_cvt_i32_f32_e32 v0, s2
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1073 ; VI-NEXT: s_mov_b32 s2, -1
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1074 ; VI-NEXT: buffer_store_short v0, off, s[0:3], 0
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1075 ; VI-NEXT: s_endpgm
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1076 ;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1077 ; EG-LABEL: fp_to_sint_f32_i16:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1078 ; EG: ; %bb.0:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1079 ; EG-NEXT: ALU 13, @4, KC0[CB0:0-32], KC1[]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1080 ; EG-NEXT: MEM_RAT MSKOR T0.XW, T1.X
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1081 ; EG-NEXT: CF_END
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1082 ; EG-NEXT: PAD
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1083 ; EG-NEXT: ALU clause starting at 4:
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1084 ; EG-NEXT: TRUNC T0.W, KC0[2].Z,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1085 ; EG-NEXT: AND_INT * T1.W, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1086 ; EG-NEXT: 3(4.203895e-45), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1087 ; EG-NEXT: FLT_TO_INT * T0.W, PV.W,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1088 ; EG-NEXT: AND_INT T0.W, PV.W, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1089 ; EG-NEXT: LSHL * T1.W, T1.W, literal.y,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1090 ; EG-NEXT: 65535(9.183409e-41), 3(4.203895e-45)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1091 ; EG-NEXT: LSHL T0.X, PV.W, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1092 ; EG-NEXT: LSHL * T0.W, literal.x, PS,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1093 ; EG-NEXT: 65535(9.183409e-41), 0(0.000000e+00)
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1094 ; EG-NEXT: MOV T0.Y, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1095 ; EG-NEXT: MOV * T0.Z, 0.0,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1096 ; EG-NEXT: LSHR * T1.X, KC0[2].Y, literal.x,
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1097 ; EG-NEXT: 2(2.802597e-45), 0(0.000000e+00)
150
anatofuz
parents:
diff changeset
1098 %sint = fptosi float %in to i16
anatofuz
parents:
diff changeset
1099 store i16 %sint, i16 addrspace(1)* %out
anatofuz
parents:
diff changeset
1100 ret void
anatofuz
parents:
diff changeset
1101 }
anatofuz
parents:
diff changeset
1102
anatofuz
parents:
diff changeset
1103 attributes #0 = { nounwind }
anatofuz
parents:
diff changeset
1104 attributes #1 = { nounwind readnone }