39 lines · plain
1; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize32 < %s | FileCheck -check-prefixes=GCN,GFX1032 %s2; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize32 < %s | FileCheck -check-prefixes=GCN,GFX1032 %s3; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize64 < %s | FileCheck -check-prefixes=GCN,GFX1064 %s4; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32 < %s | FileCheck -check-prefixes=GCN,GFX1032 %s5; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32 < %s | FileCheck -check-prefixes=GCN,GFX1032 %s6; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize64 < %s | FileCheck -check-prefixes=GCN,GFX1064 %s7; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize64 < %s | FileCheck -check-prefixes=GCN,GFX1064 %s8; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize64 < %s | FileCheck -check-prefixes=GCN,GFX1064 %s9 10; GCN-LABEL: {{^}}test_init_exec:11; GFX1032: s_mov_b32 exec_lo, 0x1234512; GFX1064: s_mov_b64 exec, 0x1234513; GCN: v_add_f32_e32 v0,14define amdgpu_ps float @test_init_exec(float %a, float %b) {15main_body:16 %s = fadd float %a, %b17 call void @llvm.amdgcn.init.exec(i64 74565)18 ret float %s19}20 21; GCN-LABEL: {{^}}test_init_exec_from_input:22; GCN: s_bfe_u32 s0, s3, 0x7000823; GFX1032: s_bfm_b32 exec_lo, s0, 024; GFX1032: s_cmp_eq_u32 s0, 3225; GFX1032: s_cmov_b32 exec_lo, -126; GFX1064: s_bfm_b64 exec, s0, 027; GFX1064: s_cmp_eq_u32 s0, 6428; GFX1064: s_cmov_b64 exec, -129; GCN: v_add_f32_e32 v0,30define amdgpu_ps float @test_init_exec_from_input(i32 inreg, i32 inreg, i32 inreg, i32 inreg %count, float %a, float %b) {31main_body:32 %s = fadd float %a, %b33 call void @llvm.amdgcn.init.exec.from.input(i32 %count, i32 8)34 ret float %s35}36 37declare void @llvm.amdgcn.init.exec(i64)38declare void @llvm.amdgcn.init.exec.from.input(i32, i32)39