Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AArch64/movimm-expand-ldst.ll
T
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

96 lines
2.8 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s
define i64 @test0x1234567812345678() {
; CHECK-LABEL: test0x1234567812345678:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #22136 // =0x5678
; CHECK-NEXT: movk x0, #4660, lsl #16
; CHECK-NEXT: orr x0, x0, x0, lsl #32
; CHECK-NEXT: ret
ret i64 u0x1234567812345678
}
define i64 @test0xff3456ffff3456ff() {
; CHECK-LABEL: test0xff3456ffff3456ff:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #22271 // =0x56ff
; CHECK-NEXT: movk x0, #65332, lsl #16
; CHECK-NEXT: orr x0, x0, x0, lsl #32
; CHECK-NEXT: ret
ret i64 u0xff3456ffff3456ff
}
define i64 @test0x00345600345600() {
; CHECK-LABEL: test0x00345600345600:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #22016 // =0x5600
; CHECK-NEXT: movk x0, #52, lsl #16
; CHECK-NEXT: movk x0, #13398, lsl #32
; CHECK-NEXT: ret
ret i64 u0x00345600345600
}
define i64 @test0x5555555555555555() {
; CHECK-LABEL: test0x5555555555555555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #6148914691236517205 // =0x5555555555555555
; CHECK-NEXT: ret
ret i64 u0x5555555555555555
}
define i64 @test0x5055555550555555() {
; CHECK-LABEL: test0x5055555550555555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #6148914691236517205 // =0x5555555555555555
; CHECK-NEXT: and x0, x0, #0xf0fffffff0ffffff
; CHECK-NEXT: ret
ret i64 u0x5055555550555555
}
define i64 @test0x0000555555555555() {
; CHECK-LABEL: test0x0000555555555555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #6148914691236517205 // =0x5555555555555555
; CHECK-NEXT: movk x0, #0, lsl #48
; CHECK-NEXT: ret
ret i64 u0x0000555555555555
}
define i64 @test0x0000555500005555() {
; CHECK-LABEL: test0x0000555500005555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #21845 // =0x5555
; CHECK-NEXT: movk x0, #21845, lsl #32
; CHECK-NEXT: ret
ret i64 u0x0000555500005555
}
define i64 @testu0xffff5555ffff5555() {
; CHECK-LABEL: testu0xffff5555ffff5555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #-43691 // =0xffffffffffff5555
; CHECK-NEXT: movk x0, #21845, lsl #32
; CHECK-NEXT: ret
ret i64 u0xffff5555ffff5555
}
define i64 @testuu0xfffff555f555f555() {
; CHECK-LABEL: testuu0xfffff555f555f555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #-2731 // =0xfffffffffffff555
; CHECK-NEXT: movk x0, #62805, lsl #16
; CHECK-NEXT: movk x0, #62805, lsl #32
; CHECK-NEXT: ret
ret i64 u0xfffff555f555f555
}
define i64 @testuu0xf555f555f555f555() {
; CHECK-LABEL: testuu0xf555f555f555f555:
; CHECK: // %bb.0:
; CHECK-NEXT: mov x0, #6148914691236517205 // =0x5555555555555555
; CHECK-NEXT: orr x0, x0, #0xe001e001e001e001
; CHECK-NEXT: ret
ret i64 u0xf555f555f555f555
}