Skip to content

Commit

Permalink
Unrolled build for rust-lang#120376
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#120376 - nikic:update-codegen-test, r=cuviper

Update codegen test for LLVM 18

r? ```````@cuviper```````
  • Loading branch information
rust-timer authored Jan 30, 2024
2 parents c401f09 + bdf7404 commit 87b53c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/codegen/pow_of_two.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 87b53c2

Please sign in to comment.