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
71 lines
1.6 KiB
LLVM
71 lines
1.6 KiB
LLVM
; RUN: llc < %s -asm-verbose=false -mcpu=mvp -disable-wasm-fallthrough-return-opt -wasm-keep-registers -verify-machineinstrs | FileCheck %s
|
|
; RUN: llc < %s -asm-verbose=false -mcpu=mvp -wasm-keep-registers -fast-isel -verify-machineinstrs | FileCheck %s
|
|
|
|
; Test that FastISel does not generate instructions with NoReg
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; CHECK: i32.const {{.*}}, addr
|
|
; CHECK: i32.const {{.*}}, 24
|
|
; CHECK: i32.shl
|
|
; CHECK: i32.const {{.*}}, 24
|
|
; CHECK: i32.shr_s
|
|
; CHECK: i32.const {{.*}}, 64
|
|
; CHECK: i32.lt_s
|
|
; CHECK: i32.const {{.*}}, 1
|
|
; CHECK: i32.and
|
|
; CHECK: i32.eqz
|
|
; CHECK: br_if 0, $pop{{[0-9]+}}
|
|
define hidden i32 @d() #0 {
|
|
entry:
|
|
%t = icmp slt i8 ptrtoint (ptr @addr to i8), 64
|
|
br i1 %t, label %a, label %b
|
|
a:
|
|
unreachable
|
|
b:
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK: i32.const {{.*}}, addr
|
|
; CHECK: i32.const {{.*}}, 255
|
|
; CHECK: i32.and
|
|
; CHECK: i32.const {{.*}}, 64
|
|
; CHECK: i32.lt_u
|
|
; CHECK: i32.const {{.*}}, 1
|
|
; CHECK: i32.and
|
|
; CHECK: i32.eqz
|
|
; CHECK: br_if 0, $pop{{[0-9]+}}
|
|
define hidden i32 @e() #0 {
|
|
entry:
|
|
%t = icmp ult i8 ptrtoint (ptr @addr to i8), 64
|
|
br i1 %t, label %a, label %b
|
|
a:
|
|
unreachable
|
|
b:
|
|
ret i32 0
|
|
}
|
|
|
|
; CHECK: i32.const {{.*}}, addr
|
|
; CHECK: i32.const {{.*}}, 24
|
|
; CHECK: i32.shl
|
|
; CHECK: i32.const {{.*}}, 24
|
|
; CHECK: i32.shr_s
|
|
define hidden i32 @f() #0 {
|
|
entry:
|
|
%t = sext i8 ptrtoint (ptr @addr to i8) to i32
|
|
ret i32 %t
|
|
}
|
|
|
|
; CHECK: i32.const {{.*}}, addr
|
|
; CHECK: i32.const {{.*}}, 255
|
|
; CHECK: i32.and
|
|
define hidden i32 @g() #0 {
|
|
entry:
|
|
%t = zext i8 ptrtoint (ptr @addr to i8) to i32
|
|
ret i32 %t
|
|
}
|
|
|
|
declare void @addr()
|
|
|
|
attributes #0 = { noinline optnone }
|