[llvm] Support vector `ptrtoint` and `inttoptr` with X86 GlobalISel. (PR #175270)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 02:26:54 PST 2026


================
@@ -0,0 +1,112 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=i386-linux-gnu -global-isel -mattr=-sse2    -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=NO-SSE
+; RUN: llc -mtriple=i386-linux-gnu -global-isel -mattr=+sse2    -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=SSE
+; RUN: llc -mtriple=i386-linux-gnu -global-isel -mattr=+avx     -verify-machineinstrs < %s -o - | FileCheck %s --check-prefixes=AVX
+; RUN: llc -mtriple=i386-linux-gnu -global-isel -mattr=+avx512f -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=AVX512
----------------
RKSimon wrote:

I'd prefer to see these as isel-inttoptr-32.ll / isel-inttoptr-64.ll test files - with fast/sdag coverage - not just in the GlobalISel subfolder - same for ptrtoint

https://github.com/llvm/llvm-project/pull/175270


More information about the llvm-commits mailing list