diff options
| author | Nikita Popov <npopov@redhat.com> | 2024-01-26 14:46:17 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2024-01-26 15:03:23 +0100 |
| commit | bdf7404b43d683accd29c20c880c51c85ceaaccd (patch) | |
| tree | 6b8f05d92cd36d79ee0b385e369836a37839cfe0 | |
| parent | 1fc46f3a8f12622c077f533da9e6dc3c227bbbb2 (diff) | |
| download | rust-bdf7404b43d683accd29c20c880c51c85ceaaccd.tar.gz rust-bdf7404b43d683accd29c20c880c51c85ceaaccd.zip | |
Update codegen test for LLVM 18
| -rw-r--r-- | tests/codegen/pow_of_two.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/pow_of_two.rs b/tests/codegen/pow_of_two.rs index a8c0550e332..372360dfd12 100644 --- a/tests/codegen/pow_of_two.rs +++ b/tests/codegen/pow_of_two.rs @@ -4,7 +4,7 @@ #[no_mangle] pub fn a(exp: u32) -> u64 { // CHECK: %{{[^ ]+}} = icmp ugt i32 %exp, 64 - // CHECK: %{{[^ ]+}} = zext i32 %exp to i64 + // CHECK: %{{[^ ]+}} = zext{{( nneg)?}} i32 %exp to i64 // CHECK: %{{[^ ]+}} = shl nuw i64 {{[^ ]+}}, %{{[^ ]+}} // CHECK: ret i64 %{{[^ ]+}} 2u64.pow(exp) @@ -14,7 +14,7 @@ pub fn a(exp: u32) -> u64 { #[no_mangle] pub fn b(exp: u32) -> i64 { // CHECK: %{{[^ ]+}} = icmp ugt i32 %exp, 64 - // CHECK: %{{[^ ]+}} = zext i32 %exp to i64 + // CHECK: %{{[^ ]+}} = zext{{( nneg)?}} i32 %exp to i64 // CHECK: %{{[^ ]+}} = shl nuw i64 {{[^ ]+}}, %{{[^ ]+}} // CHECK: ret i64 %{{[^ ]+}} 2i64.pow(exp) |
