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
97 lines
2.6 KiB
LLVM
97 lines
2.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=m68k-linux -verify-machineinstrs | FileCheck %s
|
|
|
|
define i64 @test1(i64 %A, i32 %B) nounwind {
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: ; %bb.0:
|
|
; CHECK-NEXT: move.l (12,%sp), %d0
|
|
; CHECK-NEXT: add.l (4,%sp), %d0
|
|
; CHECK-NEXT: move.l (8,%sp), %d1
|
|
; CHECK-NEXT: rts
|
|
%tmp12 = zext i32 %B to i64
|
|
%tmp3 = shl i64 %tmp12, 32
|
|
%tmp5 = add i64 %tmp3, %A
|
|
ret i64 %tmp5
|
|
}
|
|
|
|
define void @test2(ptr inreg %a) nounwind {
|
|
; CHECK-LABEL: test2:
|
|
; CHECK: ; %bb.0:
|
|
; CHECK-NEXT: move.l %d0, %a0
|
|
; CHECK-NEXT: add.l #128, (%a0)
|
|
; CHECK-NEXT: rts
|
|
%aa = load i32, ptr %a
|
|
%b = add i32 %aa, 128
|
|
store i32 %b, ptr %a
|
|
ret void
|
|
}
|
|
|
|
define fastcc void @test2_fast(ptr inreg %a) nounwind {
|
|
; CHECK-LABEL: test2_fast:
|
|
; CHECK: ; %bb.0:
|
|
; CHECK-NEXT: add.l #128, (%a0)
|
|
; CHECK-NEXT: rts
|
|
%aa = load i32, ptr %a
|
|
%b = add i32 %aa, 128
|
|
store i32 %b, ptr %a
|
|
ret void
|
|
}
|
|
|
|
define fastcc void @test3(ptr inreg %a) nounwind {
|
|
; CHECK-LABEL: test3:
|
|
; CHECK: ; %bb.0:
|
|
; CHECK-NEXT: suba.l #4, %sp
|
|
; CHECK-NEXT: movem.l %d2, (0,%sp) ; 8-byte Folded Spill
|
|
; CHECK-NEXT: move.l (%a0), %d0
|
|
; CHECK-NEXT: moveq #0, %d1
|
|
; CHECK-NEXT: move.l #-2147483648, %d2
|
|
; CHECK-NEXT: add.l (4,%a0), %d2
|
|
; CHECK-NEXT: addx.l %d0, %d1
|
|
; CHECK-NEXT: move.l %d2, (4,%a0)
|
|
; CHECK-NEXT: move.l %d1, (%a0)
|
|
; CHECK-NEXT: movem.l (0,%sp), %d2 ; 8-byte Folded Reload
|
|
; CHECK-NEXT: adda.l #4, %sp
|
|
; CHECK-NEXT: rts
|
|
%aa = load i64, ptr %a
|
|
%b = add i64 %aa, 2147483648
|
|
store i64 %b, ptr %a
|
|
ret void
|
|
}
|
|
|
|
define fastcc void @test4(ptr inreg %a) nounwind {
|
|
; CHECK-LABEL: test4:
|
|
; CHECK: ; %bb.0:
|
|
; CHECK-NEXT: suba.l #4, %sp
|
|
; CHECK-NEXT: movem.l %d2, (0,%sp) ; 8-byte Folded Spill
|
|
; CHECK-NEXT: move.l (%a0), %d0
|
|
; CHECK-NEXT: moveq #0, %d1
|
|
; CHECK-NEXT: moveq #127, %d2
|
|
; CHECK-NEXT: not.b %d2
|
|
; CHECK-NEXT: add.l (4,%a0), %d2
|
|
; CHECK-NEXT: addx.l %d0, %d1
|
|
; CHECK-NEXT: move.l %d2, (4,%a0)
|
|
; CHECK-NEXT: move.l %d1, (%a0)
|
|
; CHECK-NEXT: movem.l (0,%sp), %d2 ; 8-byte Folded Reload
|
|
; CHECK-NEXT: adda.l #4, %sp
|
|
; CHECK-NEXT: rts
|
|
%aa = load i64, ptr %a
|
|
%b = add i64 %aa, 128
|
|
store i64 %b, ptr %a
|
|
ret void
|
|
}
|
|
|
|
define fastcc i32 @test9(i32 %x, i32 %y) nounwind readnone {
|
|
; CHECK-LABEL: test9:
|
|
; CHECK: ; %bb.0:
|
|
; CHECK-NEXT: sub.l #10, %d0
|
|
; CHECK-NEXT: seq %d0
|
|
; CHECK-NEXT: ext.w %d0
|
|
; CHECK-NEXT: ext.l %d0
|
|
; CHECK-NEXT: add.l %d1, %d0
|
|
; CHECK-NEXT: rts
|
|
%cmp = icmp eq i32 %x, 10
|
|
%sub = sext i1 %cmp to i32
|
|
%cond = add i32 %sub, %y
|
|
ret i32 %cond
|
|
}
|