33; 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 %s
44; RUN: not --crash 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 %s
55
6- ; RUN: not --crash llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f32-f64-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F32-F64-FAIL %s
7- ; RUN: not --crash llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f32-f64-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=F32-F64-FAIL %s
8-
96; TODO: check for GISEL when bfloat is supported.
107; 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 %s
118; 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 %s
129
13- ; 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=TONEARESTAWAY-FAIL %s
14- ; RUN: not --crash llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1030 -filetype=null %t/f16-f32-tonearestaway-err.ll 2>&1 | FileCheck --ignore-case --check-prefix=TONEARESTAWAY-FAIL %s
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 %s
11+ ; RUN: not --crash 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 %s
12+
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 %s
14+ ; RUN: not --crash 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 %s
1515
1616;--- f16-f64-err.ll
1717define amdgpu_gs void @test_fptrunc_round_f16_f64 (double %a , ptr addrspace (1 ) %out ) {
@@ -21,14 +21,6 @@ define amdgpu_gs void @test_fptrunc_round_f16_f64(double %a, ptr addrspace(1) %o
2121 ret void
2222}
2323
24- ;--- f32-f64-err.ll
25- define amdgpu_gs void @test_fptrunc_round_f32_f64 (double %a , ptr addrspace (1 ) %out ) {
26- ; F32-F64-FAIL: LLVM ERROR: Cannot select
27- %res = call float @llvm.fptrunc.round.f32.f64 (double %a , metadata !"round.downward" )
28- store float %res , ptr addrspace (1 ) %out , align 4
29- ret void
30- }
31-
3224;--- bf16-f32-err.ll
3325define amdgpu_gs void @test_fptrunc_round_bf16_f32 (float %a , ptr addrspace (1 ) %out ) {
3426; BF16-F32-FAIL: LLVM ERROR: Cannot select
@@ -47,8 +39,16 @@ define amdgpu_gs void @test_fptrunc_round_bf16_f64(double %a, ptr addrspace(1) %
4739
4840;--- f16-f32-tonearestaway-err.ll
4941define amdgpu_gs void @test_fptrunc_round_f16_f32_tonearestaway (float %a , ptr addrspace (1 ) %out ) {
50- ; TONEARESTAWAY-FAIL: LLVM ERROR: Cannot select
42+ ; F16-F32- TONEARESTAWAY-FAIL: LLVM ERROR: Cannot select
5143 %res = call half @llvm.fptrunc.round.f16.f32 (float %a , metadata !"round.tonearestaway" )
5244 store half %res , ptr addrspace (1 ) %out , align 2
5345 ret void
5446}
47+
48+ ;--- f32-f64-tonearestaway-err.ll
49+ define amdgpu_gs void @test_fptrunc_round_f32_f64_tonearestaway (double %a , ptr addrspace (1 ) %out ) {
50+ ; F32-F64-TONEARESTAWAY-FAIL: LLVM ERROR: Cannot select
51+ %res = call float @llvm.fptrunc.round.f32.f64 (double %a , metadata !"round.tonearestaway" )
52+ store float %res , ptr addrspace (1 ) %out , align 4
53+ ret void
54+ }
0 commit comments