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
55 lines
1.3 KiB
LLVM
55 lines
1.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: llc -mtriple=aarch64 -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
define i64 @get_fpcr() #0 {
|
|
; CHECK-LABEL: get_fpcr:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mrs x0, FPCR
|
|
; CHECK-NEXT: ret
|
|
%1 = tail call i64 @llvm.aarch64.get.fpcr()
|
|
ret i64 %1
|
|
}
|
|
|
|
define void @set_fpcr(i64 %cr) {
|
|
; CHECK-LABEL: set_fpcr:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: msr FPCR, x0
|
|
; CHECK-NEXT: ret
|
|
call void @llvm.aarch64.set.fpcr(i64 %cr)
|
|
ret void
|
|
}
|
|
|
|
define i64 @get_fpsr() {
|
|
; CHECK-LABEL: get_fpsr:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mrs x0, FPSR
|
|
; CHECK-NEXT: ret
|
|
%1 = tail call i64 @llvm.aarch64.get.fpsr()
|
|
ret i64 %1
|
|
}
|
|
|
|
define void @set_fpsr(i64 %sr) {
|
|
; CHECK-LABEL: set_fpsr:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: msr FPSR, x0
|
|
; CHECK-NEXT: ret
|
|
call void @llvm.aarch64.set.fpsr(i64 %sr)
|
|
ret void
|
|
}
|
|
|
|
define void @set_fpmr(i64 %sr) {
|
|
; CHECK-LABEL: set_fpmr:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: msr FPMR, x0
|
|
; CHECK-NEXT: ret
|
|
call void @llvm.aarch64.set.fpmr(i64 %sr)
|
|
ret void
|
|
}
|
|
|
|
declare i64 @llvm.aarch64.get.fpcr()
|
|
declare void @llvm.aarch64.set.fpcr(i64)
|
|
declare i64 @llvm.aarch64.get.fpsr()
|
|
declare void @llvm.aarch64.set.fpsr(i64)
|
|
|
|
attributes #0 = { nounwind }
|