[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-17 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo closed https://github.com/llvm/llvm-project/pull/153293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-16 Thread Pedro Lobo via cfe-commits
@@ -389,6 +389,7 @@ __m64 test_mm_mul_su32(__m64 a, __m64 b) { // CHECK: mul <2 x i64> %{{.*}}, %{{.*}} return _mm_mul_su32(a, b); } +TEST_CONSTEXPR(match_m64(_mm_mul_su32((__m64)(__v4hi){+1, -2, +3, -4}, (__m64)(__v4hi){-10, +8, +6, -4}), 2533154533212150)); -

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-16 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo updated https://github.com/llvm/llvm-project/pull/153293 >From 4163545d41d9e0336c6aaf32d19ceb161fbb6214 Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Fri, 15 Aug 2025 18:57:28 +0100 Subject: [PATCH 1/2] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-15 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: Should I wait for @phoebewang's review before merging? https://github.com/llvm/llvm-project/pull/153293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-14 Thread Pedro Lobo via cfe-commits
@@ -389,6 +389,7 @@ __m64 test_mm_mul_su32(__m64 a, __m64 b) { // CHECK: mul <2 x i64> %{{.*}}, %{{.*}} return _mm_mul_su32(a, b); } +TEST_CONSTEXPR(match_v2si(_mm_mul_su32((__m64)(__v4hi){+1, -2, +3, -4}, (__m64)(__v4hi){-10, +8, +6, -4}), 1900534, 589796)); -

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-14 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo updated https://github.com/llvm/llvm-project/pull/153293 >From c38db4cec7342ea978b7d4849fe574b5b17638df Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Tue, 12 Aug 2025 17:42:37 +0100 Subject: [PATCH 1/3] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-14 Thread Pedro Lobo via cfe-commits
@@ -925,6 +925,7 @@ __m128i test_mm_mul_epu32(__m128i A, __m128i B) { // CHECK: mul <2 x i64> %{{.*}}, %{{.*}} return _mm_mul_epu32(A, B); } +TEST_CONSTEXPR(match_v8hi(_mm_mul_epu32((__m128i)(__v8hi){+1, -2, +3, -4, +5, -6, +7, -8}, (__m128i)(__v8hi){-16, -14, +12, +10, -8

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-14 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo updated https://github.com/llvm/llvm-project/pull/153293 >From c38db4cec7342ea978b7d4849fe574b5b17638df Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Tue, 12 Aug 2025 17:42:37 +0100 Subject: [PATCH 1/2] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-13 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: Rebased over 08eff57444343e4081690f7947fd81f5ea862a86. https://github.com/llvm/llvm-project/pull/153293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr (PR #153293)

2025-08-13 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo updated https://github.com/llvm/llvm-project/pull/153293 >From c38db4cec7342ea978b7d4849fe574b5b17638df Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Tue, 12 Aug 2025 17:42:37 +0100 Subject: [PATCH] [Headers][X86] Allow pmuludq/pmuldq to be used in constexpr Add

[clang] [clang][x86] Add C/C++ and 32/64-bit test coverage to constexpr tests (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo edited https://github.com/llvm/llvm-project/pull/152478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add C/C++ and 32/64-bit test coverage to constexpr tests (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo closed https://github.com/llvm/llvm-project/pull/152478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add C/C++ and 32/64-bit test coverage to constexpr tests (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo edited https://github.com/llvm/llvm-project/pull/152478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add C++ run lines and fix constexpr tests (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo edited https://github.com/llvm/llvm-project/pull/152478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Fix `_mm512_popcnt_epi64` constexpr test (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo updated https://github.com/llvm/llvm-project/pull/152478 >From 5d3a3eca3bb6beda8bc8dbd1999c00d1d02e3105 Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Thu, 7 Aug 2025 11:17:41 +0100 Subject: [PATCH] [clang][x86] Add C++ run lines and fix constexpr tests Some file

[clang] [clang][x86] Fix `_mm512_popcnt_epi64` constexpr test (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: Oh, I see you added the run lines in `avx512vpopcntdqvl-builtins.c`. I'll rebase. https://github.com/llvm/llvm-project/pull/152478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [clang][x86] Fix `_mm512_popcnt_epi64` constexpr test (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: > nice catch - any idea why the test was passing? I don't really know how to run/verify these `constexpr` tests. At least with `ninja check-all`, they don’t seem to run in a way that clearly reports the `static_assert` failures. I've been relying on my editor's LSP. It flagg

[clang] [clang][x86] Fix `_mm512_popcnt_epi64` constexpr test (PR #152478)

2025-08-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/152478 The previous test incorrectly assumed 32-bit integers, leading to incorrect bit counts. This change updates the test result to assume 64-bit integers. >From 385fa5588bf544a3cd691cf6641f80c7d9f4a258 Mon Sep 1

[clang] [CodeGen] Change placeholder from `undef` to `poison` (PR #134731)

2025-04-08 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo closed https://github.com/llvm/llvm-project/pull/134731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Change placeholder from `undef` to `poison` (PR #134731)

2025-04-07 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/134731 Fill default values of a map with `poison` instead of `undef`. There should be no functional difference as the default values are overridden later. >From de69ee35e12babf55f6a0212200431bf75340dc4 Mon Sep 17 0

[clang] [ARM, MVE] Change placeholder from `undef` to `poison` (PR #131689)

2025-03-17 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/131689 Call `insertelement` on a `poison` value instead of `undef`. >From f90247df8bbb6e24aab4476ea8ef9ef5d990edb3 Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Mon, 17 Mar 2025 22:50:51 + Subject: [PATCH] [A

[clang] [clang] Change placeholder from `undef` to `poison` (PR #131533)

2025-03-17 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo closed https://github.com/llvm/llvm-project/pull/131533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Change placeholder from `undef` to `poison` (PR #131533)

2025-03-16 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/131533 Return a `poison` value, instead of `undef`, if there is no available SEH info. >From 6c231b0dba091d6f7c5b79a92dedeeb56166fd8f Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Wed, 15 Jan 2025 20:14:30 +

[clang] [Metadata] Change placeholder from `undef` to `poison` (PR #131469)

2025-03-15 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/131469 Replace `undef` constant metadata uses with `poison`. >From 7df6eb58c29f35eef3845c3ba5f76edb902272f4 Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Sat, 15 Mar 2025 20:10:34 + Subject: [PATCH] [Metadata

[clang] [SveEmitter] Explicitly merge with `poison` instead of `undef` (PR #124596)

2025-01-31 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: Thanks for the heads-up! I've skimmed through the [Arm Architecture Reference Manual for A-profile architecture](https://developer.arm.com/documentation/ddi0487/latest/) but what I've found is rather inconclusive. Section B1.4.5.3 states that "_Merging predication is perform

[clang] [SveEmitter] Explicitly merge with `poison` instead of `undef` (PR #124596)

2025-01-27 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: cc @nunoplopes https://github.com/llvm/llvm-project/pull/124596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Change placeholder from `undef` to `poison` (PR #120446)

2024-12-18 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: cc @nunoplopes https://github.com/llvm/llvm-project/pull/120446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Change placeholder from `undef` to `poison` (PR #120446)

2024-12-18 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/120446 Call `insertvalue` with a `poison` operand instead of `undef`. >From eac0aa0d6a60a61a4312b248229aa94559ca5add Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Wed, 18 Dec 2024 15:58:46 + Subject: [PATCH]

[clang] [Clang] Change placeholders from `undef` to `poison` (PR #119141)

2024-12-10 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: cc @nunoplopes https://github.com/llvm/llvm-project/pull/119141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Change placeholders from `undef` to `poison` (PR #119141)

2024-12-08 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/119141 - Use `poison `instead of `undef` as a phi operand from an unreachable block. - Call `@llvm.vector.insert` with a `poison` subvec when performing a `bitcast` from a fixed vector to a scalable vector. >From c

[clang] [Clang] Change placeholder from `undef` to `poison` (PR #117064)

2024-12-01 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: cc @nunoplopes https://github.com/llvm/llvm-project/pull/117064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Change placeholder from `undef` to `poison` (PR #117064)

2024-11-29 Thread Pedro Lobo via cfe-commits
pedroclobo wrote: Ping https://github.com/llvm/llvm-project/pull/117064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits