brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · d2caadf Raw
55 lines · plain
1; RUN: split-file %s %t2 3; RUN: not --crash llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f16-f64-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F16-F64-FAIL %s4; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f16-f64-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F16-F64-FAIL %s5 6; TODO: check for GISEL when bfloat is supported.7; RUN: not --crash llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/bf16-f32-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=BF16-F32-FAIL %s8; RUN: not --crash llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/bf16-f64-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=BF16-F64-FAIL %s9 10; RUN: not --crash llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f16-f32-tonearestaway-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F16-F32-TONEARESTAWAY-FAIL %s11; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f16-f32-tonearestaway-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F16-F32-TONEARESTAWAY-FAIL %s12 13; RUN: not --crash llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f32-f64-tonearestaway-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F32-F64-TONEARESTAWAY-FAIL %s14; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f32-f64-tonearestaway-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F32-F64-TONEARESTAWAY-FAIL %s15 16;--- f16-f64-err.ll17define amdgpu_gs void @test_fptrunc_round_f16_f64(double %a, ptr addrspace(1) %out) {18; F16-F64-FAIL: LLVM ERROR: Cannot select19  %res = call half @llvm.fptrunc.round.f16.f64(double %a, metadata !"round.upward")20  store half %res, ptr addrspace(1) %out, align 221  ret void22}23 24;--- bf16-f32-err.ll25define amdgpu_gs void @test_fptrunc_round_bf16_f32(float %a, ptr addrspace(1) %out) {26; BF16-F32-FAIL: LLVM ERROR: Cannot select27  %res = call bfloat @llvm.fptrunc.round.bf16.f32(float %a, metadata !"round.towardzero")28  store bfloat %res, ptr addrspace(1) %out, align 229  ret void30}31 32;--- bf16-f64-err.ll33define amdgpu_gs void @test_fptrunc_round_bf16_f64(double %a, ptr addrspace(1) %out) {34; BF16-F64-FAIL: LLVM ERROR: Cannot select35  %res = call bfloat @llvm.fptrunc.round.bf16.f32(double %a, metadata !"round.tonearest")36  store bfloat %res, ptr addrspace(1) %out, align 237  ret void38}39 40;--- f16-f32-tonearestaway-err.ll41define amdgpu_gs void @test_fptrunc_round_f16_f32_tonearestaway(float %a, ptr addrspace(1) %out) {42; F16-F32-TONEARESTAWAY-FAIL: LLVM ERROR: Cannot select43  %res = call half @llvm.fptrunc.round.f16.f32(float %a, metadata !"round.tonearestaway")44  store half %res, ptr addrspace(1) %out, align 245  ret void46}47 48;--- f32-f64-tonearestaway-err.ll49define amdgpu_gs void @test_fptrunc_round_f32_f64_tonearestaway(double %a, ptr addrspace(1) %out) {50; F32-F64-TONEARESTAWAY-FAIL: LLVM ERROR: Cannot select51  %res = call float @llvm.fptrunc.round.f32.f64(double %a, metadata !"round.tonearestaway")52  store float %res, ptr addrspace(1) %out, align 453  ret void54}55