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
86 lines
1.9 KiB
LLVM
86 lines
1.9 KiB
LLVM
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-darwin | FileCheck %s --check-prefix=ARM
|
|
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM
|
|
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-darwin | FileCheck %s --check-prefix=THUMB
|
|
|
|
@a = global i8 1, align 1
|
|
@b = global i16 2, align 2
|
|
|
|
define void @t1() nounwind uwtable ssp {
|
|
; ARM: t1
|
|
; ARM: ldrb
|
|
; ARM-NOT: uxtb
|
|
; ARM-NOT: and{{.*}}, #255
|
|
; THUMB: t1
|
|
; THUMB: ldrb
|
|
; THUMB-NOT: uxtb
|
|
; THUMB-NOT: and{{.*}}, #255
|
|
%1 = load i8, ptr @a, align 1
|
|
call void @foo1(i8 zeroext %1)
|
|
ret void
|
|
}
|
|
|
|
define void @t2() nounwind uwtable ssp {
|
|
; ARM: t2
|
|
; ARM: ldrh
|
|
; ARM-NOT: uxth
|
|
; THUMB: t2
|
|
; THUMB: ldrh
|
|
; THUMB-NOT: uxth
|
|
%1 = load i16, ptr @b, align 2
|
|
call void @foo2(i16 zeroext %1)
|
|
ret void
|
|
}
|
|
|
|
declare void @foo1(i8 zeroext)
|
|
declare void @foo2(i16 zeroext)
|
|
|
|
define i32 @t3() nounwind uwtable ssp {
|
|
; ARM: t3
|
|
; ARM: ldrb
|
|
; ARM-NOT: uxtb
|
|
; ARM-NOT: and{{.*}}, #255
|
|
; THUMB: t3
|
|
; THUMB: ldrb
|
|
; THUMB-NOT: uxtb
|
|
; THUMB-NOT: and{{.*}}, #255
|
|
%1 = load i8, ptr @a, align 1
|
|
%2 = zext i8 %1 to i32
|
|
ret i32 %2
|
|
}
|
|
|
|
define i32 @t4() nounwind uwtable ssp {
|
|
; ARM: t4
|
|
; ARM: ldrh
|
|
; ARM-NOT: uxth
|
|
; THUMB: t4
|
|
; THUMB: ldrh
|
|
; THUMB-NOT: uxth
|
|
%1 = load i16, ptr @b, align 2
|
|
%2 = zext i16 %1 to i32
|
|
ret i32 %2
|
|
}
|
|
|
|
define i32 @t5() nounwind uwtable ssp {
|
|
; ARM: t5
|
|
; ARM: ldrsh
|
|
; ARM-NOT: sxth
|
|
; THUMB: t5
|
|
; THUMB: ldrsh
|
|
; THUMB-NOT: sxth
|
|
%1 = load i16, ptr @b, align 2
|
|
%2 = sext i16 %1 to i32
|
|
ret i32 %2
|
|
}
|
|
|
|
define i32 @t6() nounwind uwtable ssp {
|
|
; ARM: t6
|
|
; ARM: ldrsb
|
|
; ARM-NOT: sxtb
|
|
; THUMB: t6
|
|
; THUMB: ldrsb
|
|
; THUMB-NOT: sxtb
|
|
%1 = load i8, ptr @a, align 2
|
|
%2 = sext i8 %1 to i32
|
|
ret i32 %2
|
|
}
|