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
69 lines
1.5 KiB
LLVM
69 lines
1.5 KiB
LLVM
; RUN: llc -O0 -fast-isel -verify-machineinstrs -mtriple=aarch64-apple-ios < %s | FileCheck %s
|
|
|
|
; Fast-isel can't do vector conversions yet, but it was emitting some highly
|
|
; suspect UCVTFUWDri MachineInstrs.
|
|
define <4 x float> @test_uitofp(<4 x i32> %in) {
|
|
; CHECK-LABEL: test_uitofp:
|
|
; CHECK: ucvtf.4s v0, v0
|
|
|
|
%res = uitofp <4 x i32> %in to <4 x float>
|
|
ret <4 x float> %res
|
|
}
|
|
|
|
define <2 x double> @test_sitofp(<2 x i32> %in) {
|
|
; CHECK-LABEL: test_sitofp:
|
|
; CHECK: sshll.2d [[EXT:v[0-9]+]], v0, #0
|
|
; CHECK: scvtf.2d v0, [[EXT]]
|
|
|
|
%res = sitofp <2 x i32> %in to <2 x double>
|
|
ret <2 x double> %res
|
|
}
|
|
|
|
define <2 x i32> @test_fptoui(<2 x float> %in) {
|
|
; CHECK-LABEL: test_fptoui:
|
|
; CHECK: fcvtzu.2s v0, v0
|
|
|
|
%res = fptoui <2 x float> %in to <2 x i32>
|
|
ret <2 x i32> %res
|
|
}
|
|
|
|
define <2 x i64> @test_fptosi(<2 x double> %in) {
|
|
; CHECK-LABEL: test_fptosi:
|
|
; CHECK: fcvtzs.2d v0, v0
|
|
|
|
%res = fptosi <2 x double> %in to <2 x i64>
|
|
ret <2 x i64> %res
|
|
}
|
|
|
|
define fp128 @uitofp_i32_fp128(i32 %a) {
|
|
entry:
|
|
; CHECK-LABEL: uitofp_i32_fp128
|
|
; CHECK: bl ___floatunsitf
|
|
%conv = uitofp i32 %a to fp128
|
|
ret fp128 %conv
|
|
}
|
|
|
|
define fp128 @uitofp_i64_fp128(i64 %a) {
|
|
entry:
|
|
; CHECK-LABEL: uitofp_i64_fp128
|
|
; CHECK: bl ___floatunditf
|
|
%conv = uitofp i64 %a to fp128
|
|
ret fp128 %conv
|
|
}
|
|
|
|
define i32 @uitofp_fp128_i32(fp128 %a) {
|
|
entry:
|
|
; CHECK-LABEL: uitofp_fp128_i32
|
|
; CHECK: ___fixunstfsi
|
|
%conv = fptoui fp128 %a to i32
|
|
ret i32 %conv
|
|
}
|
|
|
|
define i64 @uitofp_fp128_i64(fp128 %a) {
|
|
entry:
|
|
; CHECK-LABEL: uitofp_fp128_i64
|
|
; CHECK: ___fixunstfdi
|
|
%conv = fptoui fp128 %a to i64
|
|
ret i64 %conv
|
|
}
|