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
126 lines
3.8 KiB
LLVM
126 lines
3.8 KiB
LLVM
; RUN: llc < %s -mtriple=s390x-linux-gnu \
|
|
; RUN: | FileCheck %s --check-prefixes=CHECK,DEFAULT
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mattr=soft-float \
|
|
; RUN: | FileCheck %s --check-prefixes=CHECK,SOFT-FLOAT
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mattr=-soft-float \
|
|
; RUN: | FileCheck %s --check-prefixes=CHECK,NO-SOFT-FL
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mattr=-vector \
|
|
; RUN: | FileCheck %s --check-prefixes=CHECK,NO-VECTOR
|
|
;
|
|
; Test per function attributes and command line arguments that override them.
|
|
|
|
attributes #1 = { "target-cpu"="z14" "target-features"="+vector" "use-soft-float"="false" }
|
|
define double @fun1(ptr %A) #1 {
|
|
; CHECK-LABEL: fun1:
|
|
; DEFAULT: ld %f0, 0(%r2)
|
|
; SOFT-FLOAT: lg %r2, 0(%r2)
|
|
; NO-SOFT-FL: ld %f0, 0(%r2)
|
|
; NO-VECTOR: ld %f0, 0(%r2)
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load double, ptr %A
|
|
ret double %0
|
|
}
|
|
|
|
attributes #2 = { "target-cpu"="z14" "target-features"="+vector" "use-soft-float"="true" }
|
|
define double @fun2(ptr %A) #2 {
|
|
; CHECK-LABEL: fun2:
|
|
; DEFAULT: lg %r2, 0(%r2)
|
|
; SOFT-FLOAT: lg %r2, 0(%r2)
|
|
; NO-SOFT-FL: lg %r2, 0(%r2)
|
|
; NO-VECTOR: lg %r2, 0(%r2)
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load double, ptr %A
|
|
ret double %0
|
|
}
|
|
|
|
attributes #3 = { "target-cpu"="z14" "target-features"="+vector" "use-soft-float"="false" }
|
|
define <2 x double> @fun3(ptr %A) #3 {
|
|
; CHECK-LABEL: fun3:
|
|
; DEFAULT: vl %v24, 0(%r2), 3
|
|
; SOFT-FLOAT: lg %r0, 0(%r2)
|
|
; SOFT-FLOAT-NEXT: lg %r3, 8(%r2)
|
|
; SOFT-FLOAT-NEXT: lgr %r2, %r0
|
|
; NO-SOFT-FL: vl %v24, 0(%r2), 3
|
|
; NO-VECTOR: ld %f0, 0(%r2)
|
|
; NO-VECTOR-NEXT: ld %f2, 8(%r2)
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load <2 x double>, ptr %A
|
|
ret <2 x double> %0
|
|
}
|
|
|
|
attributes #4 = { "target-cpu"="z14" "target-features"="+vector" "use-soft-float"="true" }
|
|
define <2 x double> @fun4(ptr %A) #4 {
|
|
; CHECK-LABEL: fun4:
|
|
; DEFAULT: lg %r0, 0(%r2)
|
|
; DEFAULT-NEXT: lg %r3, 8(%r2)
|
|
; DEFAULT-NEXT: lgr %r2, %r0
|
|
; SOFT-FLOAT: lg %r0, 0(%r2)
|
|
; SOFT-FLOAT-NEXT: lg %r3, 8(%r2)
|
|
; SOFT-FLOAT-NEXT: lgr %r2, %r0
|
|
; NO-SOFT-FL: lg %r0, 0(%r2)
|
|
; NO-SOFT-FL-NEXT: lg %r3, 8(%r2)
|
|
; NO-SOFT-FL-NEXT: lgr %r2, %r0
|
|
; NO-VECTOR: lg %r0, 0(%r2)
|
|
; NO-VECTOR-NEXT: lg %r3, 8(%r2)
|
|
; NO-VECTOR-NEXT: lgr %r2, %r0
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load <2 x double>, ptr %A
|
|
ret <2 x double> %0
|
|
}
|
|
|
|
attributes #5 = { "target-cpu"="z14" "target-features"="-vector" "use-soft-float"="false" }
|
|
define <2 x double> @fun5(ptr %A) #5 {
|
|
; CHECK-LABEL: fun5:
|
|
; DEFAULT: ld %f0, 0(%r2)
|
|
; DEFAULT-NEXT: ld %f2, 8(%r2)
|
|
; SOFT-FLOAT: lg %r0, 0(%r2)
|
|
; SOFT-FLOAT-NEXT: lg %r3, 8(%r2)
|
|
; SOFT-FLOAT-NEXT: lgr %r2, %r0
|
|
; NO-SOFT-FL: ld %f0, 0(%r2)
|
|
; NO-SOFT-FL-NEXT: ld %f2, 8(%r2)
|
|
; NO-VECTOR: ld %f0, 0(%r2)
|
|
; NO-VECTOR-NEXT: ld %f2, 8(%r2)
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load <2 x double>, ptr %A
|
|
ret <2 x double> %0
|
|
}
|
|
|
|
attributes #6 = { "target-cpu"="zEC12" "use-soft-float"="false" }
|
|
define <2 x double> @fun6(ptr %A) #6 {
|
|
; CHECK-LABEL: fun6:
|
|
; DEFAULT: ld %f0, 0(%r2)
|
|
; DEFAULT-NEXT: ld %f2, 8(%r2)
|
|
; SOFT-FLOAT: lg %r0, 0(%r2)
|
|
; SOFT-FLOAT-NEXT: lg %r3, 8(%r2)
|
|
; SOFT-FLOAT-NEXT: lgr %r2, %r0
|
|
; NO-SOFT-FL: ld %f0, 0(%r2)
|
|
; NO-SOFT-FL-NEXT: ld %f2, 8(%r2)
|
|
; NO-VECTOR: ld %f0, 0(%r2)
|
|
; NO-VECTOR-NEXT: ld %f2, 8(%r2)
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load <2 x double>, ptr %A
|
|
ret <2 x double> %0
|
|
}
|
|
|
|
attributes #7 = { "target-cpu"="zEC12" "target-features"="+vector" "use-soft-float"="false" }
|
|
define <2 x double> @fun7(ptr %A) #7 {
|
|
; CHECK-LABEL: fun7:
|
|
; DEFAULT: vl %v24, 0(%r2), 3
|
|
; SOFT-FLOAT: lg %r0, 0(%r2)
|
|
; SOFT-FLOAT-NEXT: lg %r3, 8(%r2)
|
|
; SOFT-FLOAT-NEXT: lgr %r2, %r0
|
|
; NO-SOFT-FL: vl %v24, 0(%r2), 3
|
|
; NO-VECTOR: ld %f0, 0(%r2)
|
|
; NO-VECTOR-NEXT: ld %f2, 8(%r2)
|
|
; CHECK-NEXT: br %r14
|
|
entry:
|
|
%0 = load <2 x double>, ptr %A
|
|
ret <2 x double> %0
|
|
}
|