[llvm] [DirectX] add GEP i8 legalization (PR #142475)

Deric C. via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 3 17:13:24 PDT 2025


================
@@ -110,8 +110,8 @@ define i32 @all_imm() {
 define i32 @scalar_i8_geps() {
   ; CHECK-LABEL: define i32 @scalar_i8_geps(
   ; CHECK-NEXT:    [[ALLOCA:%.*]] = alloca i32, align 4
-  ; CHECK-NEXT:    [[GEP:%.*]] = getelementptr inbounds nuw i32, ptr [[ALLOCA]], i32 0
-  ; CHECK-NEXT:    [[LOAD:%.*]] = load i32, ptr [[GEP]], align 4
+  ; CHECK-NEXT:    [[GEP:%.*]] = getelementptr inbounds nuw [1 x i32], ptr [[ALLOCA]], i32 0, i32 0
----------------
Icohedron wrote:

I can't seem to get llc to produce a binary of the format that the validator is expecting. 

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


More information about the llvm-commits mailing list