annotate llvm/test/CodeGen/AMDGPU/llvm.amdgcn.init.exec.wave32.ll @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
1 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize32,-wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1032 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
2 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize32,-wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1032 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
3 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1010 -mattr=-wavefrontsize32,+wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1064 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
4 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32,-wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1032 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
5 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32,-wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1032 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
6 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1010 -mattr=-wavefrontsize32,+wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1064 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
7 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1100 -mattr=-wavefrontsize32,+wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1064 %s
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
8 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1100 -mattr=-wavefrontsize32,+wavefrontsize64 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN,GFX1064 %s
150
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 ; GCN-LABEL: {{^}}test_init_exec:
anatofuz
parents:
diff changeset
11 ; GFX1032: s_mov_b32 exec_lo, 0x12345
anatofuz
parents:
diff changeset
12 ; GFX1064: s_mov_b64 exec, 0x12345
anatofuz
parents:
diff changeset
13 ; GCN: v_add_f32_e32 v0,
anatofuz
parents:
diff changeset
14 define amdgpu_ps float @test_init_exec(float %a, float %b) {
anatofuz
parents:
diff changeset
15 main_body:
anatofuz
parents:
diff changeset
16 %s = fadd float %a, %b
anatofuz
parents:
diff changeset
17 call void @llvm.amdgcn.init.exec(i64 74565)
anatofuz
parents:
diff changeset
18 ret float %s
anatofuz
parents:
diff changeset
19 }
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 ; GCN-LABEL: {{^}}test_init_exec_from_input:
anatofuz
parents:
diff changeset
22 ; GCN: s_bfe_u32 s0, s3, 0x70008
anatofuz
parents:
diff changeset
23 ; GFX1032: s_bfm_b32 exec_lo, s0, 0
anatofuz
parents:
diff changeset
24 ; GFX1032: s_cmp_eq_u32 s0, 32
anatofuz
parents:
diff changeset
25 ; GFX1032: s_cmov_b32 exec_lo, -1
anatofuz
parents:
diff changeset
26 ; GFX1064: s_bfm_b64 exec, s0, 0
anatofuz
parents:
diff changeset
27 ; GFX1064: s_cmp_eq_u32 s0, 64
anatofuz
parents:
diff changeset
28 ; GFX1064: s_cmov_b64 exec, -1
anatofuz
parents:
diff changeset
29 ; GCN: v_add_f32_e32 v0,
anatofuz
parents:
diff changeset
30 define amdgpu_ps float @test_init_exec_from_input(i32 inreg, i32 inreg, i32 inreg, i32 inreg %count, float %a, float %b) {
anatofuz
parents:
diff changeset
31 main_body:
anatofuz
parents:
diff changeset
32 %s = fadd float %a, %b
anatofuz
parents:
diff changeset
33 call void @llvm.amdgcn.init.exec.from.input(i32 %count, i32 8)
anatofuz
parents:
diff changeset
34 ret float %s
anatofuz
parents:
diff changeset
35 }
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 declare void @llvm.amdgcn.init.exec(i64)
anatofuz
parents:
diff changeset
38 declare void @llvm.amdgcn.init.exec.from.input(i32, i32)