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
60 lines
2.9 KiB
LLVM
60 lines
2.9 KiB
LLVM
; RUN: llc -o - %s | FileCheck %s
|
|
|
|
; AsmPrinter cannot lower floating point constant expressions in global
|
|
; initializers. Check that we do not create new globals with float constant
|
|
; expressions in initializers.
|
|
|
|
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
|
|
target triple = "arm64-apple-ios14.0.0"
|
|
|
|
define [1 x <4 x float>] @test1() {
|
|
; CHECK-LABEL: .p2align 4, 0x0 ; -- Begin function test1
|
|
; CHECK-NEXT: lCPI0_0:
|
|
; CHECK-NEXT: .quad 0 ; 0x0
|
|
; CHECK-NEXT: .quad 4575657221408423936 ; 0x3f80000000000000
|
|
; CHECK-NEXT: .section __TEXT,__text,regular,pure_instructions
|
|
; CHECK-NEXT: .globl _test1
|
|
; CHECK-NEXT: .p2align 2
|
|
; CHECK-NEXT: _test1: ; @test1
|
|
; CHECK-NEXT: .cfi_startproc
|
|
; CHECK-NEXT: ; %bb.0:
|
|
; CHECK-NEXT: Lloh0:
|
|
; CHECK-NEXT: adrp x8, lCPI0_0@PAGE
|
|
; CHECK-NEXT: Lloh1:
|
|
; CHECK-NEXT: ldr q0, [x8, lCPI0_0@PAGEOFF]
|
|
; CHECK-NEXT: ret
|
|
|
|
ret [1 x <4 x float>] [<4 x float> bitcast (<1 x i128> <i128 84405977732342157929391748327801880576> to <4 x float>)]
|
|
}
|
|
|
|
define [1 x <4 x float>] @test2() {
|
|
; CHECK-LABEL: .p2align 4, 0x0 ; -- Begin function test2
|
|
; CHECK-NEXT: lCPI1_0:
|
|
; CHECK-NEXT: .long 0x80000000 ; float -0
|
|
; CHECK-NEXT: .long 0x80000000 ; float -0
|
|
; CHECK-NEXT: .long 0x80000000 ; float -0
|
|
; CHECK-NEXT: .long 0xbf800000 ; float -1
|
|
; CHECK-NEXT: .section __TEXT,__text,regular,pure_instructions
|
|
; CHECK-NEXT: .globl _test2
|
|
; CHECK-NEXT: .p2align 2
|
|
; CHECK-NEXT: _test2: ; @test2
|
|
; CHECK-NEXT: .cfi_startproc
|
|
; CHECK-NEXT: ; %bb.0:
|
|
; CHECK-NEXT: Lloh2:
|
|
; CHECK-NEXT: adrp x8, lCPI1_0@PAGE
|
|
; CHECK-NEXT: Lloh3:
|
|
; CHECK-NEXT: ldr q0, [x8, lCPI1_0@PAGEOFF]
|
|
; CHECK-NEXT: ret
|
|
;
|
|
%constexpr = fneg float extractelement (<4 x float> bitcast (<1 x i128> <i128 84405977732342157929391748327801880576> to <4 x float>), i32 0)
|
|
%constexpr1 = fneg float extractelement (<4 x float> bitcast (<1 x i128> <i128 84405977732342157929391748327801880576> to <4 x float>), i32 1)
|
|
%constexpr2 = fneg float extractelement (<4 x float> bitcast (<1 x i128> <i128 84405977732342157929391748327801880576> to <4 x float>), i32 2)
|
|
%constexpr3 = fneg float extractelement (<4 x float> bitcast (<1 x i128> <i128 84405977732342157929391748327801880576> to <4 x float>), i32 3)
|
|
%constexpr.ins = insertelement <4 x float> poison, float %constexpr, i32 0
|
|
%constexpr.ins4 = insertelement <4 x float> %constexpr.ins, float %constexpr1, i32 1
|
|
%constexpr.ins5 = insertelement <4 x float> %constexpr.ins4, float %constexpr2, i32 2
|
|
%constexpr.ins6 = insertelement <4 x float> %constexpr.ins5, float %constexpr3, i32 3
|
|
%constexpr.ins7 = insertvalue [1 x <4 x float>] poison, <4 x float> %constexpr.ins6, 0
|
|
ret [1 x <4 x float>] %constexpr.ins7
|
|
}
|