about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-07-10 03:23:55 -0400
committerGitHub <noreply@github.com>2025-07-10 03:23:55 -0400
commita2fe1bcf7024cdc2e522b65ede1de4f6f9187e55 (patch)
tree3551957f00447a74390154b7422377e7b1ef1974
parentebd394045489b5e32d21c2263444c017b505338e (diff)
parent7ca9f9363dbb42a845ea70dfb449253f08c83ce1 (diff)
downloadrust-a2fe1bcf7024cdc2e522b65ede1de4f6f9187e55.tar.gz
rust-a2fe1bcf7024cdc2e522b65ede1de4f6f9187e55.zip
Rollup merge of #143270 - TimNN:fix-enum-match, r=nikic
tests/codegen/enum/enum-match.rs: accept negative range attribute

The test current fails when `rustc` is built with HEAD LLVM: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/38097/steps/canvas?sid=0197c492-5661-4c42-8ae7-3d789e85c6ca

I suspect the change was caused by https://github.com/llvm/llvm-project/commit/545cdca4883552b147a0f1adfac713f76fc22305

``@rustbot`` label llvm-main
-rw-r--r--tests/codegen/enum/enum-match.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/enum/enum-match.rs b/tests/codegen/enum/enum-match.rs
index 6da6ad1f078..98635008d06 100644
--- a/tests/codegen/enum/enum-match.rs
+++ b/tests/codegen/enum/enum-match.rs
@@ -98,7 +98,7 @@ pub enum Enum2 {
     E,
 }
 
-// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match2(i8{{.+}}%0)
+// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, -?[0-9]+\))?}} i8 @match2(i8{{.+}}%0)
 // CHECK-NEXT: start:
 // CHECK-NEXT: %[[REL_VAR:.+]] = add i8 %0, 2
 // CHECK-NEXT: %[[REL_VAR_WIDE:.+]] = zext i8 %[[REL_VAR]] to i64