Files
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

162 lines
3.7 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+ndd -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,NDD
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+ndd,+prefer-ndd-imm -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,NDD
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+ndd,+prefer-ndd-mem -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,MEM
; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+ndd,+prefer-ndd-imm,+prefer-ndd-mem -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,MEM
define i8 @not8r(i8 noundef %a) {
; CHECK-LABEL: not8r:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notb %dil, %al
; CHECK-NEXT: retq
entry:
%not = xor i8 %a, -1
ret i8 %not
}
define i16 @not16r(i16 noundef %a) {
; CHECK-LABEL: not16r:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notw %di, %ax
; CHECK-NEXT: retq
entry:
%not = xor i16 %a, -1
ret i16 %not
}
define i32 @not32r(i32 noundef %a) {
; CHECK-LABEL: not32r:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notl %edi, %eax
; CHECK-NEXT: retq
entry:
%not = xor i32 %a, -1
ret i32 %not
}
define i64 @not64r(i64 noundef %a) {
; CHECK-LABEL: not64r:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notq %rdi, %rax
; CHECK-NEXT: retq
entry:
%not = xor i64 %a, -1
ret i64 %not
}
define i8 @not8m(ptr %ptr) {
; NDD-LABEL: not8m:
; NDD: # %bb.0: # %entry
; NDD-NEXT: movzbl (%rdi), %eax
; NDD-NEXT: notb %al
; NDD-NEXT: retq
;
; MEM-LABEL: not8m:
; MEM: # %bb.0: # %entry
; MEM-NEXT: notb (%rdi), %al
; MEM-NEXT: retq
entry:
%a = load i8, ptr %ptr
%not = xor i8 %a, -1
ret i8 %not
}
define i16 @not16m(ptr %ptr) {
; NDD-LABEL: not16m:
; NDD: # %bb.0: # %entry
; NDD-NEXT: movzwl (%rdi), %eax
; NDD-NEXT: notw %ax
; NDD-NEXT: retq
;
; MEM-LABEL: not16m:
; MEM: # %bb.0: # %entry
; MEM-NEXT: notw (%rdi), %ax
; MEM-NEXT: retq
entry:
%a = load i16, ptr %ptr
%not = xor i16 %a, -1
ret i16 %not
}
define i32 @not32m(ptr %ptr) {
; NDD-LABEL: not32m:
; NDD: # %bb.0: # %entry
; NDD-NEXT: movl (%rdi), %eax
; NDD-NEXT: notl %eax
; NDD-NEXT: retq
;
; MEM-LABEL: not32m:
; MEM: # %bb.0: # %entry
; MEM-NEXT: notl (%rdi), %eax
; MEM-NEXT: retq
entry:
%a = load i32, ptr %ptr
%not = xor i32 %a, -1
ret i32 %not
}
define i64 @not64m(ptr %ptr) {
; NDD-LABEL: not64m:
; NDD: # %bb.0: # %entry
; NDD-NEXT: movq (%rdi), %rax
; NDD-NEXT: notq %rax
; NDD-NEXT: retq
;
; MEM-LABEL: not64m:
; MEM: # %bb.0: # %entry
; MEM-NEXT: notq (%rdi), %rax
; MEM-NEXT: retq
entry:
%a = load i64, ptr %ptr
%not = xor i64 %a, -1
ret i64 %not
}
define void @not8m_legacy(ptr %ptr) {
; CHECK-LABEL: not8m_legacy:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notb (%rdi)
; CHECK-NEXT: retq
entry:
%a = load i8, ptr %ptr
%not = xor i8 %a, -1
store i8 %not, ptr %ptr
ret void
}
define void @not16m_legacy(ptr %ptr) {
; CHECK-LABEL: not16m_legacy:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notw (%rdi)
; CHECK-NEXT: retq
entry:
%a = load i16, ptr %ptr
%not = xor i16 %a, -1
store i16 %not, ptr %ptr
ret void
}
define void @not32m_legacy(ptr %ptr) {
; CHECK-LABEL: not32m_legacy:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notl (%rdi)
; CHECK-NEXT: retq
entry:
%a = load i32, ptr %ptr
%not = xor i32 %a, -1
store i32 %not, ptr %ptr
ret void
}
define void @not64m_legacy(ptr %ptr) {
; CHECK-LABEL: not64m_legacy:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: notq (%rdi)
; CHECK-NEXT: retq
entry:
%a = load i64, ptr %ptr
%not = xor i64 %a, -1
store i64 %not, ptr %ptr
ret void
}