diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-04 09:54:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-04 09:54:40 +0100 |
| commit | 75e412b8d10591bca72c0bdba124e8a4ca732dae (patch) | |
| tree | d6db67a66e61ab68702b20cfa42aa543b04c1dd0 /tests | |
| parent | 725b79947826b2895566eb7a69c0f16f886c2287 (diff) | |
| parent | ed005245c64447db5bcf28c29045a3bb99dd15e0 (diff) | |
| download | rust-75e412b8d10591bca72c0bdba124e8a4ca732dae.tar.gz rust-75e412b8d10591bca72c0bdba124e8a4ca732dae.zip | |
Rollup merge of #135084 - maurer:nuw, r=nikic
Update carrying_mul_add test to tolerate `nuw` LLVM 20 adds nuw to GEP operations in this code, tolerate them. `@rustbot` label: +llvm-main r? `@durin42`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/codegen/intrinsics/carrying_mul_add.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/intrinsics/carrying_mul_add.rs b/tests/codegen/intrinsics/carrying_mul_add.rs index 174c4077f09..b53585a8a6e 100644 --- a/tests/codegen/intrinsics/carrying_mul_add.rs +++ b/tests/codegen/intrinsics/carrying_mul_add.rs @@ -84,7 +84,7 @@ pub unsafe fn cma_u128(a: u128, b: u128, c: u128, d: u128) -> (u128, u128) { // RAW: [[PAIR0:%.+]] = insertvalue { i128, i128 } poison, i128 [[LOW]], 0 // RAW: [[PAIR1:%.+]] = insertvalue { i128, i128 } [[PAIR0]], i128 [[HIGH]], 1 // OPT: store i128 [[LOW]], ptr %_0 - // OPT: [[P1:%.+]] = getelementptr inbounds i8, ptr %_0, {{i32|i64}} 16 + // OPT: [[P1:%.+]] = getelementptr inbounds{{( nuw)?}} i8, ptr %_0, {{i32|i64}} 16 // OPT: store i128 [[HIGH]], ptr [[P1]] // CHECK: ret void carrying_mul_add(a, b, c, d) @@ -111,7 +111,7 @@ pub unsafe fn cma_i128(a: i128, b: i128, c: i128, d: i128) -> (u128, i128) { // RAW: [[PAIR0:%.+]] = insertvalue { i128, i128 } poison, i128 [[LOW]], 0 // RAW: [[PAIR1:%.+]] = insertvalue { i128, i128 } [[PAIR0]], i128 [[HIGH]], 1 // OPT: store i128 [[LOW]], ptr %_0 - // OPT: [[P1:%.+]] = getelementptr inbounds i8, ptr %_0, {{i32|i64}} 16 + // OPT: [[P1:%.+]] = getelementptr inbounds{{( nuw)?}} i8, ptr %_0, {{i32|i64}} 16 // OPT: store i128 [[HIGH]], ptr [[P1]] // CHECK: ret void carrying_mul_add(a, b, c, d) |
