Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

84 lines
2.8 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=sparcv9 -verify-machineinstrs < %s | FileCheck %s --check-prefix=V9
define fp128 @f128_select_soft(fp128 %a, fp128 %b) #0 {
; V9-LABEL: f128_select_soft:
; V9: .cfi_startproc
; V9-NEXT: ! %bb.0: ! %entry
; V9-NEXT: add %sp, -144, %sp
; V9-NEXT: .cfi_def_cfa_register %fp
; V9-NEXT: .cfi_window_save
; V9-NEXT: .cfi_register %o7, %i7
; V9-NEXT: add %sp, 2175, %o0
; V9-NEXT: or %o0, 8, %o0
; V9-NEXT: std %f6, [%o0]
; V9-NEXT: std %f4, [%sp+2175]
; V9-NEXT: ldx [%o0], %o0
; V9-NEXT: ldx [%sp+2175], %o1
; V9-NEXT: sethi 0, %o2
; V9-NEXT: or %o2, 0, %o2
; V9-NEXT: sethi 2097152, %o3
; V9-NEXT: or %o3, 0, %o3
; V9-NEXT: sllx %o3, 32, %o3
; V9-NEXT: or %o3, %o2, %o2
; V9-NEXT: xor %o1, %o2, %o1
; V9-NEXT: orcc %o0, %o1, %g0
; V9-NEXT: bne %xcc, .LBB0_2
; V9-NEXT: nop
; V9-NEXT: ! %bb.1:
; V9-NEXT: sethi %h44(.LCPI0_0), %o0
; V9-NEXT: add %o0, %m44(.LCPI0_0), %o0
; V9-NEXT: sllx %o0, 12, %o0
; V9-NEXT: ldd [%o0+%l44(.LCPI0_0)], %f0
; V9-NEXT: add %o0, %l44(.LCPI0_0), %o0
; V9-NEXT: ldd [%o0+8], %f2
; V9-NEXT: .LBB0_2: ! %entry
; V9-NEXT: retl
; V9-NEXT: add %sp, 144, %sp
entry:
%0 = bitcast fp128 %b to i128
%xor.i = xor i128 %0, 0
%cmp19.i = icmp eq i128 %xor.i, -170141183460469231731687303715884105728
%spec.select277.i = select i1 %cmp19.i, fp128 0xL00000000000000007FFF800000000000, fp128 %a
ret fp128 %spec.select277.i
}
define fp128 @f128_select_hard(fp128 %a, fp128 %b) #1 {
; V9-LABEL: f128_select_hard:
; V9: .cfi_startproc
; V9-NEXT: ! %bb.0: ! %entry
; V9-NEXT: add %sp, -144, %sp
; V9-NEXT: .cfi_def_cfa_register %fp
; V9-NEXT: .cfi_window_save
; V9-NEXT: .cfi_register %o7, %i7
; V9-NEXT: stq %f4, [%sp+2175]
; V9-NEXT: add %sp, 2175, %o0
; V9-NEXT: or %o0, 8, %o0
; V9-NEXT: ldx [%o0], %o0
; V9-NEXT: ldx [%sp+2175], %o1
; V9-NEXT: sethi 0, %o2
; V9-NEXT: or %o2, 0, %o2
; V9-NEXT: sethi %h44(.LCPI1_0), %o3
; V9-NEXT: add %o3, %m44(.LCPI1_0), %o3
; V9-NEXT: sllx %o3, 12, %o3
; V9-NEXT: ldq [%o3+%l44(.LCPI1_0)], %f4
; V9-NEXT: sethi 2097152, %o3
; V9-NEXT: or %o3, 0, %o3
; V9-NEXT: sllx %o3, 32, %o3
; V9-NEXT: or %o3, %o2, %o2
; V9-NEXT: xor %o1, %o2, %o1
; V9-NEXT: or %o0, %o1, %o0
; V9-NEXT: fmovrqz %o0, %f4, %f0
; V9-NEXT: retl
; V9-NEXT: add %sp, 144, %sp
entry:
%0 = bitcast fp128 %b to i128
%xor.i = xor i128 %0, 0
%cmp19.i = icmp eq i128 %xor.i, -170141183460469231731687303715884105728
%spec.select277.i = select i1 %cmp19.i, fp128 0xL00000000000000007FFF800000000000, fp128 %a
ret fp128 %spec.select277.i
}
attributes #0 = { "target-features"="-hard-quad-float" }
attributes #1 = { "target-features"="+hard-quad-float" }