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
72 lines
1.9 KiB
LLVM
72 lines
1.9 KiB
LLVM
; RUN: llc -mtriple=arm64ec-pc-windows-msvc < %s | FileCheck %s
|
|
|
|
define void @f1(ptr %p, i64 %n) {
|
|
; CHECK-LABEL: "#f1":
|
|
; CHECK: bl "#memset"
|
|
call void @llvm.memset.p0.i64(ptr %p, i8 0, i64 %n, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @f2(ptr %p1, ptr %p2, i64 %n) {
|
|
; CHECK-LABEL: "#f2":
|
|
; CHECK: bl "#memcpy"
|
|
call void @llvm.memcpy.p0.i64(ptr %p1, ptr %p2, i64 %n, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define double @f3(double %x, double %y) {
|
|
; CHECK-LABEL: "#f3":
|
|
; CHECK: b "#fmod"
|
|
%r = frem double %x, %y
|
|
ret double %r
|
|
}
|
|
|
|
define i128 @f4(i128 %x, i128 %y) {
|
|
; CHECK-LABEL: "#f4":
|
|
; CHECK: bl "#__divti3"
|
|
%r = sdiv i128 %x, %y
|
|
ret i128 %r
|
|
}
|
|
|
|
define i8 @f5(i8 %expected, i8 %new, ptr %ptr) "target-features"="+outline-atomics" {
|
|
; CHECK-LABEL: "#f5":
|
|
; CHECK: bl "#__aarch64_cas1_relax"
|
|
%pair = cmpxchg ptr %ptr, i8 %expected, i8 %new monotonic monotonic, align 1
|
|
%r = extractvalue { i8, i1 } %pair, 0
|
|
ret i8 %r
|
|
}
|
|
|
|
define float @f6(float %val, i32 %a) {
|
|
; CHECK-LABEL: "#f6":
|
|
; CHECK: bl "#ldexp"
|
|
%call = tail call fast float @llvm.ldexp.f32(float %val, i32 %a)
|
|
ret float %call
|
|
}
|
|
|
|
@dst = global [512 x i8] zeroinitializer, align 1
|
|
@src = global [512 x i8] zeroinitializer, align 1
|
|
|
|
define void @call__arm_sc_memcpy(i64 noundef %n) #0 {
|
|
; CHECK-LABEL: "#call__arm_sc_memcpy":
|
|
; CHECK: bl "#__arm_sc_memcpy"
|
|
|
|
tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 @dst, ptr nonnull align 1 @src, i64 %n, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @call__arm_sc_memmove(i64 noundef %n) #0 {
|
|
; CHECK-LABEL: "#call__arm_sc_memmove":
|
|
; CHECK: bl "#__arm_sc_memmove"
|
|
tail call void @llvm.memmove.p0.p0.i64(ptr align 1 @dst, ptr nonnull align 1 @src, i64 %n, i1 false)
|
|
ret void
|
|
}
|
|
|
|
define void @call__arm_sc_memset(i64 noundef %n) #0 {
|
|
; CHECK-LABEL: "#call__arm_sc_memset":
|
|
; CHECK: bl "#__arm_sc_memset"
|
|
tail call void @llvm.memset.p0.i64(ptr align 1 @dst, i8 2, i64 %n, i1 false)
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "aarch64_pstate_sm_enabled" "target-features"="+sme2" }
|