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
80 lines
1.7 KiB
LLVM
80 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: -p --version 4
|
|
; RUN: opt -S < %s | FileCheck %s
|
|
|
|
define i32 @instr() {
|
|
; CHECK-LABEL: define i32 @instr() {
|
|
; CHECK-NEXT: %1 = add i32 1, 2
|
|
; CHECK-NEXT: %2 = add i32 %1, 3
|
|
; CHECK-NEXT: %3 = add i32 %2, 4
|
|
; CHECK-NEXT: ret i32 %3
|
|
;
|
|
%10 = add i32 1, 2
|
|
%20 = add i32 %10, 3
|
|
%30 = add i32 %20, 4
|
|
ret i32 %30
|
|
}
|
|
|
|
define i32 @instr_some_implicit() {
|
|
; CHECK-LABEL: define i32 @instr_some_implicit() {
|
|
; CHECK-NEXT: %1 = add i32 1, 2
|
|
; CHECK-NEXT: %2 = add i32 3, 4
|
|
; CHECK-NEXT: %3 = add i32 %1, %2
|
|
; CHECK-NEXT: ret i32 %3
|
|
;
|
|
add i32 1, 2
|
|
%10 = add i32 3, 4
|
|
add i32 %1, %10
|
|
ret i32 %11
|
|
}
|
|
|
|
define i32 @args(i32 %0, i32 %10, i32 %20) {
|
|
; CHECK-LABEL: define i32 @args(i32 %0, i32 %1, i32 %2) {
|
|
; CHECK-NEXT: %4 = add i32 %0, %1
|
|
; CHECK-NEXT: %5 = add i32 %4, %2
|
|
; CHECK-NEXT: ret i32 %5
|
|
;
|
|
%30 = add i32 %0, %10
|
|
%31 = add i32 %30, %20
|
|
ret i32 %31
|
|
}
|
|
|
|
define i32 @args_some_implicit(i32, i32 %10, i32) {
|
|
; CHECK-LABEL: define i32 @args_some_implicit(i32 %0, i32 %1, i32 %2) {
|
|
; CHECK-NEXT: %4 = add i32 %0, %1
|
|
; CHECK-NEXT: %5 = add i32 %2, %4
|
|
; CHECK-NEXT: ret i32 %5
|
|
;
|
|
add i32 %0, %10
|
|
%20 = add i32 %11, %13
|
|
ret i32 %20
|
|
}
|
|
|
|
define i32 @blocks() {
|
|
; CHECK-LABEL: define i32 @blocks() {
|
|
; CHECK-NEXT: br label %1
|
|
; CHECK: 1:
|
|
; CHECK-NEXT: ret i32 0
|
|
;
|
|
10:
|
|
br label %20
|
|
|
|
20:
|
|
ret i32 0
|
|
}
|
|
|
|
define i32 @blocks_some_implicit() {
|
|
; CHECK-LABEL: define i32 @blocks_some_implicit() {
|
|
; CHECK-NEXT: br label %1
|
|
; CHECK: 1:
|
|
; CHECK-NEXT: br label %2
|
|
; CHECK: 2:
|
|
; CHECK-NEXT: ret i32 0
|
|
;
|
|
br label %10
|
|
|
|
10:
|
|
br label %11
|
|
|
|
ret i32 0
|
|
}
|