brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · c24c3f8 Raw
105 lines · plain
1; RUN: llc -mtriple=amdgcn--amdhsa < %s | FileCheck -check-prefix=GCN %s2 3; GCN-LABEL: {{^}}test_default_ci:4; GCN: .amdhsa_dx10_clamp 15; GCN: .amdhsa_ieee_mode 16; GCN: FloatMode: 2407define amdgpu_kernel void @test_default_ci(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #0 {8  store float 0.0, ptr addrspace(1) %out09  store double 0.0, ptr addrspace(1) %out110  ret void11}12 13; GCN-LABEL: {{^}}test_default_vi:14; GCN: .amdhsa_dx10_clamp 115; GCN: .amdhsa_ieee_mode 116; GCN: FloatMode: 24017define amdgpu_kernel void @test_default_vi(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #1 {18  store float 0.0, ptr addrspace(1) %out019  store double 0.0, ptr addrspace(1) %out120  ret void21}22 23; GCN-LABEL: {{^}}test_f64_denormals:24; GCN: .amdhsa_dx10_clamp 125; GCN: .amdhsa_ieee_mode 126; GCN: FloatMode: 19227define amdgpu_kernel void @test_f64_denormals(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #2 {28  store float 0.0, ptr addrspace(1) %out029  store double 0.0, ptr addrspace(1) %out130  ret void31}32 33; GCN-LABEL: {{^}}test_f32_denormals:34; GCN: .amdhsa_dx10_clamp 135; GCN: .amdhsa_ieee_mode 136; GCN: FloatMode: 4837define amdgpu_kernel void @test_f32_denormals(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #3 {38  store float 0.0, ptr addrspace(1) %out039  store double 0.0, ptr addrspace(1) %out140  ret void41}42 43; GCN-LABEL: {{^}}test_f32_f64_denormals:44; GCN: .amdhsa_dx10_clamp 145; GCN: .amdhsa_ieee_mode 146; GCN: FloatMode: 24047define amdgpu_kernel void @test_f32_f64_denormals(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #4 {48  store float 0.0, ptr addrspace(1) %out049  store double 0.0, ptr addrspace(1) %out150  ret void51}52 53; GCN-LABEL: {{^}}test_no_denormals:54; GCN: .amdhsa_dx10_clamp 155; GCN: .amdhsa_ieee_mode 156; GCN: FloatMode: 057define amdgpu_kernel void @test_no_denormals(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #5 {58  store float 0.0, ptr addrspace(1) %out059  store double 0.0, ptr addrspace(1) %out160  ret void61}62 63; GCN-LABEL: {{^}}test_no_dx10_clamp_vi:64; GCN: .amdhsa_dx10_clamp 065; GCN: .amdhsa_ieee_mode 166; GCN: FloatMode: 24067define amdgpu_kernel void @test_no_dx10_clamp_vi(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #6 {68  store float 0.0, ptr addrspace(1) %out069  store double 0.0, ptr addrspace(1) %out170  ret void71}72 73; GCN-LABEL: {{^}}test_no_ieee_mode_vi:74; GCN: .amdhsa_dx10_clamp 175; GCN: .amdhsa_ieee_mode 076; GCN: FloatMode: 24077define amdgpu_kernel void @test_no_ieee_mode_vi(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #7 {78  store float 0.0, ptr addrspace(1) %out079  store double 0.0, ptr addrspace(1) %out180  ret void81}82 83; GCN-LABEL: {{^}}test_no_ieee_mode_no_dx10_clamp_vi:84; GCN: .amdhsa_dx10_clamp 085; GCN: .amdhsa_ieee_mode 086; GCN: FloatMode: 24087define amdgpu_kernel void @test_no_ieee_mode_no_dx10_clamp_vi(ptr addrspace(1) %out0, ptr addrspace(1) %out1) #8 {88  store float 0.0, ptr addrspace(1) %out089  store double 0.0, ptr addrspace(1) %out190  ret void91}92 93attributes #0 = { nounwind "target-cpu"="kaveri" }94attributes #1 = { nounwind "target-cpu"="fiji" }95attributes #2 = { nounwind "denormal-fp-math-f32"="preserve-sign,preserve-sign" }96attributes #3 = { nounwind "denormal-fp-math-f32"="ieee,ieee" "denormal-fp-math"="preserve-sign,preserve-sign" }97attributes #4 = { nounwind "denormal-fp-math"="ieee,ieee" }98attributes #5 = { nounwind "denormal-fp-math"="preserve-sign,preserve-sign" }99attributes #6 = { nounwind "amdgpu-dx10-clamp"="false" "target-cpu"="fiji" }100attributes #7 = { nounwind "amdgpu-ieee"="false" "target-cpu"="fiji" }101attributes #8 = { nounwind "amdgpu-dx10-clamp"="false" "amdgpu-ieee"="false" "target-cpu"="fiji" }102 103!llvm.module.flags = !{!0}104!0 = !{i32 1, !"amdhsa_code_object_version", i32 400}105