[clang] [CIR] Emit _BitInt constants in memory form (PR #205605)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 24 10:51:21 PDT 2026
================
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -std=c++26 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -std=c++26 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
+// RUN: FileCheck --check-prefixes=LLVM,LLVMCIR --input-file=%t-cir.ll %s
+// RUN: %clang_cc1 -std=c++26 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
+// RUN: FileCheck --check-prefixes=LLVM,OGCG --input-file=%t.ll %s
+
+constexpr signed _BitInt(128) ci128 = 1234;
+const signed _BitInt(128) *pci = &ci128;
----------------
erichkeane wrote:
Since this is 'memory' type, we probably need to do the same for this as a member of as struct/test that, to make sure we properly lay it out.
https://github.com/llvm/llvm-project/pull/205605
More information about the cfe-commits
mailing list