CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
82 lines
2.3 KiB
YAML
82 lines
2.3 KiB
YAML
# RUN: llc -mtriple=nvptx -mcpu=sm_20 -run-pass none -o - %s | FileCheck %s
|
|
# This test ensures that the MIR parser parses floating point constant operands
|
|
# correctly.
|
|
|
|
--- |
|
|
|
|
define float @test(float %k, i32 %i) {
|
|
entry:
|
|
%0 = fpext float %k to double
|
|
%1 = fadd double %0, 3.250000e+00
|
|
%2 = fptrunc double %1 to float
|
|
%3 = sitofp i32 %i to float
|
|
%4 = fadd float %3, 6.250000e+00
|
|
%5 = fmul float %4, %2
|
|
ret float %5
|
|
}
|
|
|
|
define float @test2(float %k, i32 %i) {
|
|
entry:
|
|
%0 = fpext float %k to double
|
|
%1 = fadd double %0, 0x7FF8000000000000
|
|
%2 = fptrunc double %1 to float
|
|
%3 = sitofp i32 %i to float
|
|
%4 = fadd float %3, 0x7FF8000000000000
|
|
%5 = fmul float %4, %2
|
|
ret float %5
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test
|
|
registers:
|
|
- { id: 0, class: b32 }
|
|
- { id: 1, class: b64 }
|
|
- { id: 2, class: b32 }
|
|
- { id: 3, class: b64 }
|
|
- { id: 4, class: b32 }
|
|
- { id: 5, class: b32 }
|
|
- { id: 6, class: b32 }
|
|
- { id: 7, class: b32 }
|
|
body: |
|
|
bb.0.entry:
|
|
%0 = LD_i32 0, 0, 4, 2, 32, -1, &test_param_0, 0
|
|
%1 = CVT_f64_f32 %0, 0
|
|
%2 = LD_i32 0, 0, 4, 0, 32, -1, &test_param_1, 0
|
|
; CHECK: %3:b64 = FADD_rnf64ri %1, double 3.250000e+00
|
|
%3 = FADD_rnf64ri %1, double 3.250000e+00
|
|
%4 = CVT_f32_f64 %3, 5
|
|
%5 = CVT_f32_s32 %2, 5
|
|
; CHECK: %6:b32 = FADD_rnf32ri %5, float 6.250000e+00
|
|
%6 = FADD_rnf32ri %5, float 6.250000e+00, 0
|
|
%7 = FMUL_rnf32rr %6, %4, 0
|
|
ST_i32 %7, 0, 0, 101, 32, &func_retval0, 0 :: (store (s32), addrspace 101)
|
|
Return
|
|
...
|
|
---
|
|
name: test2
|
|
registers:
|
|
- { id: 0, class: b32 }
|
|
- { id: 1, class: b64 }
|
|
- { id: 2, class: b32 }
|
|
- { id: 3, class: b64 }
|
|
- { id: 4, class: b32 }
|
|
- { id: 5, class: b32 }
|
|
- { id: 6, class: b32 }
|
|
- { id: 7, class: b32 }
|
|
body: |
|
|
bb.0.entry:
|
|
%0 = LD_i32 0, 0, 4, 2, 32, -1, &test2_param_0, 0
|
|
%1 = CVT_f64_f32 %0, 0
|
|
%2 = LD_i32 0, 0, 4, 0, 32, -1, &test2_param_1, 0
|
|
; CHECK: %3:b64 = FADD_rnf64ri %1, double +qnan
|
|
%3 = FADD_rnf64ri %1, double 0x7FF8000000000000
|
|
%4 = CVT_f32_f64 %3, 5
|
|
%5 = CVT_f32_s32 %2, 5
|
|
; CHECK: %6:b32 = FADD_rnf32ri %5, float +qnan
|
|
%6 = FADD_rnf32ri %5, float 0x7FF8000000000000, 0
|
|
%7 = FMUL_rnf32rr %6, %4, 0
|
|
ST_i32 %7, 0, 0, 101, 32, &func_retval0, 0 :: (store (s32), addrspace 101)
|
|
Return
|
|
...
|