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
139 lines
4.8 KiB
LLVM
139 lines
4.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=i686-unknown -mattr=+lwp | FileCheck %s --check-prefixes=X86,X86_LWP
|
|
; RUN: llc < %s -mtriple=i686-unknown -mcpu=bdver1 | FileCheck %s --check-prefixes=X86,X86_BDVER
|
|
; RUN: llc < %s -mtriple=i686-unknown -mcpu=bdver2 | FileCheck %s --check-prefixes=X86,X86_BDVER
|
|
; RUN: llc < %s -mtriple=i686-unknown -mcpu=bdver3 | FileCheck %s --check-prefixes=X86,X86_BDVER
|
|
; RUN: llc < %s -mtriple=i686-unknown -mcpu=bdver4 | FileCheck %s --check-prefixes=X86,X86_BDVER
|
|
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+lwp | FileCheck %s --check-prefix=X64
|
|
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=bdver1 | FileCheck %s --check-prefix=X64
|
|
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=bdver2 | FileCheck %s --check-prefix=X64
|
|
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=bdver3 | FileCheck %s --check-prefix=X64
|
|
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=bdver4 | FileCheck %s --check-prefix=X64
|
|
|
|
define void @test_llwpcb(ptr%a0) nounwind {
|
|
; X86-LABEL: test_llwpcb:
|
|
; X86: # %bb.0:
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86-NEXT: llwpcb %eax
|
|
; X86-NEXT: retl
|
|
;
|
|
; X64-LABEL: test_llwpcb:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: llwpcb %rdi
|
|
; X64-NEXT: retq
|
|
tail call void @llvm.x86.llwpcb(ptr%a0)
|
|
ret void
|
|
}
|
|
|
|
define ptr @test_slwpcb(ptr%a0) nounwind {
|
|
; X86-LABEL: test_slwpcb:
|
|
; X86: # %bb.0:
|
|
; X86-NEXT: slwpcb %eax
|
|
; X86-NEXT: retl
|
|
;
|
|
; X64-LABEL: test_slwpcb:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: slwpcb %rax
|
|
; X64-NEXT: retq
|
|
%1 = tail call ptr @llvm.x86.slwpcb()
|
|
ret ptr%1
|
|
}
|
|
|
|
define i8 @test_lwpins32_rri(i32 %a0, i32 %a1) nounwind {
|
|
; X86_LWP-LABEL: test_lwpins32_rri:
|
|
; X86_LWP: # %bb.0:
|
|
; X86_LWP-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86_LWP-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86_LWP-NEXT: addl %ecx, %ecx
|
|
; X86_LWP-NEXT: lwpins $-1985229329, %ecx, %eax # imm = 0x89ABCDEF
|
|
; X86_LWP-NEXT: setb %al
|
|
; X86_LWP-NEXT: retl
|
|
;
|
|
; X86_BDVER-LABEL: test_lwpins32_rri:
|
|
; X86_BDVER: # %bb.0:
|
|
; X86_BDVER-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86_BDVER-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86_BDVER-NEXT: addl %ecx, %ecx
|
|
; X86_BDVER-NEXT: lwpins $-1985229329, %ecx, %eax # imm = 0x89ABCDEF
|
|
; X86_BDVER-NEXT: setb %al
|
|
; X86_BDVER-NEXT: retl
|
|
;
|
|
; X64-LABEL: test_lwpins32_rri:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: addl %esi, %esi
|
|
; X64-NEXT: lwpins $-1985229329, %esi, %edi # imm = 0x89ABCDEF
|
|
; X64-NEXT: setb %al
|
|
; X64-NEXT: retq
|
|
%1 = add i32 %a1, %a1
|
|
%2 = tail call i8 @llvm.x86.lwpins32(i32 %a0, i32 %1, i32 2309737967)
|
|
ret i8 %2
|
|
}
|
|
|
|
define i8 @test_lwpins32_rmi(i32 %a0, ptr%p1) nounwind {
|
|
; X86-LABEL: test_lwpins32_rmi:
|
|
; X86: # %bb.0:
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86-NEXT: lwpins $1985229328, (%eax), %ecx # imm = 0x76543210
|
|
; X86-NEXT: setb %al
|
|
; X86-NEXT: retl
|
|
;
|
|
; X64-LABEL: test_lwpins32_rmi:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: lwpins $1985229328, (%rsi), %edi # imm = 0x76543210
|
|
; X64-NEXT: setb %al
|
|
; X64-NEXT: retq
|
|
%a1 = load i32, ptr%p1
|
|
%1 = tail call i8 @llvm.x86.lwpins32(i32 %a0, i32 %a1, i32 1985229328)
|
|
ret i8 %1
|
|
}
|
|
|
|
define void @test_lwpval32_rri(i32 %a0, i32 %a1) nounwind {
|
|
; X86_LWP-LABEL: test_lwpval32_rri:
|
|
; X86_LWP: # %bb.0:
|
|
; X86_LWP-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86_LWP-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86_LWP-NEXT: addl %ecx, %ecx
|
|
; X86_LWP-NEXT: lwpval $-19088744, %ecx, %eax # imm = 0xFEDCBA98
|
|
; X86_LWP-NEXT: retl
|
|
;
|
|
; X86_BDVER-LABEL: test_lwpval32_rri:
|
|
; X86_BDVER: # %bb.0:
|
|
; X86_BDVER-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86_BDVER-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86_BDVER-NEXT: addl %ecx, %ecx
|
|
; X86_BDVER-NEXT: lwpval $-19088744, %ecx, %eax # imm = 0xFEDCBA98
|
|
; X86_BDVER-NEXT: retl
|
|
;
|
|
; X64-LABEL: test_lwpval32_rri:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: addl %esi, %esi
|
|
; X64-NEXT: lwpval $-19088744, %esi, %edi # imm = 0xFEDCBA98
|
|
; X64-NEXT: retq
|
|
%1 = add i32 %a1, %a1
|
|
tail call void @llvm.x86.lwpval32(i32 %a0, i32 %1, i32 4275878552)
|
|
ret void
|
|
}
|
|
|
|
define void @test_lwpval32_rmi(i32 %a0, ptr%p1) nounwind {
|
|
; X86-LABEL: test_lwpval32_rmi:
|
|
; X86: # %bb.0:
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86-NEXT: lwpval $305419896, (%eax), %ecx # imm = 0x12345678
|
|
; X86-NEXT: retl
|
|
;
|
|
; X64-LABEL: test_lwpval32_rmi:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: lwpval $305419896, (%rsi), %edi # imm = 0x12345678
|
|
; X64-NEXT: retq
|
|
%a1 = load i32, ptr%p1
|
|
tail call void @llvm.x86.lwpval32(i32 %a0, i32 %a1, i32 305419896)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.x86.llwpcb(ptr) nounwind
|
|
declare ptr @llvm.x86.slwpcb() nounwind
|
|
declare i8 @llvm.x86.lwpins32(i32, i32, i32) nounwind
|
|
declare void @llvm.x86.lwpval32(i32, i32, i32) nounwind
|