about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-22 19:01:27 +0100
committerGitHub <noreply@github.com>2023-12-22 19:01:27 +0100
commit41fbd25b73305939f43c1d0705e5ed1de1feb6da (patch)
tree06aa39802909c2829af40dd671b5fceb74dbbc84 /tests/codegen
parentc1263be8ea6910ce5b3b981df377afdd15615ff3 (diff)
parent58fdbd1479e13de780832ee549e631cfa1deb3a0 (diff)
downloadrust-41fbd25b73305939f43c1d0705e5ed1de1feb6da.tar.gz
rust-41fbd25b73305939f43c1d0705e5ed1de1feb6da.zip
Rollup merge of #119201 - durin42:overaligned-constant, r=Mark-Simulacrum
tests: fix overaligned-constant to not over-specify getelementptr instr

On LLVM 18 we get slightly different arguments here, so it's easier to just regex those away. The important details are all still asserted as I understand things.

Fixes #119193.

`@rustbot` label: +llvm-main
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/overaligned-constant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/overaligned-constant.rs b/tests/codegen/overaligned-constant.rs
index c94dfd85e7d..89e49738991 100644
--- a/tests/codegen/overaligned-constant.rs
+++ b/tests/codegen/overaligned-constant.rs
@@ -17,7 +17,7 @@ fn main() {
     // CHECK: [[full:%_.*]] = alloca %SmallStruct, align 8
     // CHECK: call void @llvm.memcpy.p0.p0.i64(ptr align 8 [[full]], ptr align 8 @0, i64 32, i1 false)
     // CHECK: %b.0 = load i32, ptr @0, align 4,
-    // CHECK: %b.1 = load i32, ptr getelementptr inbounds ({ i32, i32 }, ptr @0, i32 0, i32 1), align 4
+    // CHECK: %b.1 = load i32, ptr getelementptr inbounds ({{.*}}), align 4
     let mut s = S(1);
 
     s.0 = 3;