Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/X86/mem-promote-integers.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

392 lines
6.9 KiB
LLVM

; Test the basic functionality of integer element promotions of different types.
; This tests checks passing of arguments, loading and storing to memory and
; basic arithmetic.
; RUN: llc -mtriple=i686-- < %s > /dev/null
; RUN: llc -mtriple=x86_64-- < %s > /dev/null
define <1 x i8> @test_1xi8(<1 x i8> %x, ptr %b) {
%bb = load <1 x i8>, ptr %b
%tt = xor <1 x i8> %x, %bb
store <1 x i8> %tt, ptr %b
br label %next
next:
ret <1 x i8> %tt
}
define <1 x i16> @test_1xi16(<1 x i16> %x, ptr %b) {
%bb = load <1 x i16>, ptr %b
%tt = xor <1 x i16> %x, %bb
store <1 x i16> %tt, ptr %b
br label %next
next:
ret <1 x i16> %tt
}
define <1 x i32> @test_1xi32(<1 x i32> %x, ptr %b) {
%bb = load <1 x i32>, ptr %b
%tt = xor <1 x i32> %x, %bb
store <1 x i32> %tt, ptr %b
br label %next
next:
ret <1 x i32> %tt
}
define <1 x i64> @test_1xi64(<1 x i64> %x, ptr %b) {
%bb = load <1 x i64>, ptr %b
%tt = xor <1 x i64> %x, %bb
store <1 x i64> %tt, ptr %b
br label %next
next:
ret <1 x i64> %tt
}
define <1 x i128> @test_1xi128(<1 x i128> %x, ptr %b) {
%bb = load <1 x i128>, ptr %b
%tt = xor <1 x i128> %x, %bb
store <1 x i128> %tt, ptr %b
br label %next
next:
ret <1 x i128> %tt
}
define <1 x i256> @test_1xi256(<1 x i256> %x, ptr %b) {
%bb = load <1 x i256>, ptr %b
%tt = xor <1 x i256> %x, %bb
store <1 x i256> %tt, ptr %b
br label %next
next:
ret <1 x i256> %tt
}
define <1 x i512> @test_1xi512(<1 x i512> %x, ptr %b) {
%bb = load <1 x i512>, ptr %b
%tt = xor <1 x i512> %x, %bb
store <1 x i512> %tt, ptr %b
br label %next
next:
ret <1 x i512> %tt
}
define <2 x i8> @test_2xi8(<2 x i8> %x, ptr %b) {
%bb = load <2 x i8>, ptr %b
%tt = xor <2 x i8> %x, %bb
store <2 x i8> %tt, ptr %b
br label %next
next:
ret <2 x i8> %tt
}
define <2 x i16> @test_2xi16(<2 x i16> %x, ptr %b) {
%bb = load <2 x i16>, ptr %b
%tt = xor <2 x i16> %x, %bb
store <2 x i16> %tt, ptr %b
br label %next
next:
ret <2 x i16> %tt
}
define <2 x i32> @test_2xi32(<2 x i32> %x, ptr %b) {
%bb = load <2 x i32>, ptr %b
%tt = xor <2 x i32> %x, %bb
store <2 x i32> %tt, ptr %b
br label %next
next:
ret <2 x i32> %tt
}
define <2 x i64> @test_2xi64(<2 x i64> %x, ptr %b) {
%bb = load <2 x i64>, ptr %b
%tt = xor <2 x i64> %x, %bb
store <2 x i64> %tt, ptr %b
br label %next
next:
ret <2 x i64> %tt
}
define <2 x i128> @test_2xi128(<2 x i128> %x, ptr %b) {
%bb = load <2 x i128>, ptr %b
%tt = xor <2 x i128> %x, %bb
store <2 x i128> %tt, ptr %b
br label %next
next:
ret <2 x i128> %tt
}
define <2 x i256> @test_2xi256(<2 x i256> %x, ptr %b) {
%bb = load <2 x i256>, ptr %b
%tt = xor <2 x i256> %x, %bb
store <2 x i256> %tt, ptr %b
br label %next
next:
ret <2 x i256> %tt
}
define <2 x i512> @test_2xi512(<2 x i512> %x, ptr %b) {
%bb = load <2 x i512>, ptr %b
%tt = xor <2 x i512> %x, %bb
store <2 x i512> %tt, ptr %b
br label %next
next:
ret <2 x i512> %tt
}
define <3 x i8> @test_3xi8(<3 x i8> %x, ptr %b) {
%bb = load <3 x i8>, ptr %b
%tt = xor <3 x i8> %x, %bb
store <3 x i8> %tt, ptr %b
br label %next
next:
ret <3 x i8> %tt
}
define <3 x i16> @test_3xi16(<3 x i16> %x, ptr %b) {
%bb = load <3 x i16>, ptr %b
%tt = xor <3 x i16> %x, %bb
store <3 x i16> %tt, ptr %b
br label %next
next:
ret <3 x i16> %tt
}
define <3 x i32> @test_3xi32(<3 x i32> %x, ptr %b) {
%bb = load <3 x i32>, ptr %b
%tt = xor <3 x i32> %x, %bb
store <3 x i32> %tt, ptr %b
br label %next
next:
ret <3 x i32> %tt
}
define <3 x i64> @test_3xi64(<3 x i64> %x, ptr %b) {
%bb = load <3 x i64>, ptr %b
%tt = xor <3 x i64> %x, %bb
store <3 x i64> %tt, ptr %b
br label %next
next:
ret <3 x i64> %tt
}
define <3 x i128> @test_3xi128(<3 x i128> %x, ptr %b) {
%bb = load <3 x i128>, ptr %b
%tt = xor <3 x i128> %x, %bb
store <3 x i128> %tt, ptr %b
br label %next
next:
ret <3 x i128> %tt
}
define <3 x i256> @test_3xi256(<3 x i256> %x, ptr %b) {
%bb = load <3 x i256>, ptr %b
%tt = xor <3 x i256> %x, %bb
store <3 x i256> %tt, ptr %b
br label %next
next:
ret <3 x i256> %tt
}
define <3 x i512> @test_3xi512(<3 x i512> %x, ptr %b) {
%bb = load <3 x i512>, ptr %b
%tt = xor <3 x i512> %x, %bb
store <3 x i512> %tt, ptr %b
br label %next
next:
ret <3 x i512> %tt
}
define <4 x i8> @test_4xi8(<4 x i8> %x, ptr %b) {
%bb = load <4 x i8>, ptr %b
%tt = xor <4 x i8> %x, %bb
store <4 x i8> %tt, ptr %b
br label %next
next:
ret <4 x i8> %tt
}
define <4 x i16> @test_4xi16(<4 x i16> %x, ptr %b) {
%bb = load <4 x i16>, ptr %b
%tt = xor <4 x i16> %x, %bb
store <4 x i16> %tt, ptr %b
br label %next
next:
ret <4 x i16> %tt
}
define <4 x i32> @test_4xi32(<4 x i32> %x, ptr %b) {
%bb = load <4 x i32>, ptr %b
%tt = xor <4 x i32> %x, %bb
store <4 x i32> %tt, ptr %b
br label %next
next:
ret <4 x i32> %tt
}
define <4 x i64> @test_4xi64(<4 x i64> %x, ptr %b) {
%bb = load <4 x i64>, ptr %b
%tt = xor <4 x i64> %x, %bb
store <4 x i64> %tt, ptr %b
br label %next
next:
ret <4 x i64> %tt
}
define <4 x i128> @test_4xi128(<4 x i128> %x, ptr %b) {
%bb = load <4 x i128>, ptr %b
%tt = xor <4 x i128> %x, %bb
store <4 x i128> %tt, ptr %b
br label %next
next:
ret <4 x i128> %tt
}
define <4 x i256> @test_4xi256(<4 x i256> %x, ptr %b) {
%bb = load <4 x i256>, ptr %b
%tt = xor <4 x i256> %x, %bb
store <4 x i256> %tt, ptr %b
br label %next
next:
ret <4 x i256> %tt
}
define <4 x i512> @test_4xi512(<4 x i512> %x, ptr %b) {
%bb = load <4 x i512>, ptr %b
%tt = xor <4 x i512> %x, %bb
store <4 x i512> %tt, ptr %b
br label %next
next:
ret <4 x i512> %tt
}
define <5 x i8> @test_5xi8(<5 x i8> %x, ptr %b) {
%bb = load <5 x i8>, ptr %b
%tt = xor <5 x i8> %x, %bb
store <5 x i8> %tt, ptr %b
br label %next
next:
ret <5 x i8> %tt
}
define <5 x i16> @test_5xi16(<5 x i16> %x, ptr %b) {
%bb = load <5 x i16>, ptr %b
%tt = xor <5 x i16> %x, %bb
store <5 x i16> %tt, ptr %b
br label %next
next:
ret <5 x i16> %tt
}
define <5 x i32> @test_5xi32(<5 x i32> %x, ptr %b) {
%bb = load <5 x i32>, ptr %b
%tt = xor <5 x i32> %x, %bb
store <5 x i32> %tt, ptr %b
br label %next
next:
ret <5 x i32> %tt
}
define <5 x i64> @test_5xi64(<5 x i64> %x, ptr %b) {
%bb = load <5 x i64>, ptr %b
%tt = xor <5 x i64> %x, %bb
store <5 x i64> %tt, ptr %b
br label %next
next:
ret <5 x i64> %tt
}
define <5 x i128> @test_5xi128(<5 x i128> %x, ptr %b) {
%bb = load <5 x i128>, ptr %b
%tt = xor <5 x i128> %x, %bb
store <5 x i128> %tt, ptr %b
br label %next
next:
ret <5 x i128> %tt
}
define <5 x i256> @test_5xi256(<5 x i256> %x, ptr %b) {
%bb = load <5 x i256>, ptr %b
%tt = xor <5 x i256> %x, %bb
store <5 x i256> %tt, ptr %b
br label %next
next:
ret <5 x i256> %tt
}
define <5 x i512> @test_5xi512(<5 x i512> %x, ptr %b) {
%bb = load <5 x i512>, ptr %b
%tt = xor <5 x i512> %x, %bb
store <5 x i512> %tt, ptr %b
br label %next
next:
ret <5 x i512> %tt
}