Skip to content

Commit f402b8b

Browse files
authored
Rollup merge of rust-lang#120376 - nikic:update-codegen-test, r=cuviper
Update codegen test for LLVM 18 r? ``@cuviper``
2 parents 4ada5ef + bdf7404 commit f402b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/codegen/pow_of_two.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#[no_mangle]
55
pub fn a(exp: u32) -> u64 {
66
// CHECK: %{{[^ ]+}} = icmp ugt i32 %exp, 64
7-
// CHECK: %{{[^ ]+}} = zext i32 %exp to i64
7+
// CHECK: %{{[^ ]+}} = zext{{( nneg)?}} i32 %exp to i64
88
// CHECK: %{{[^ ]+}} = shl nuw i64 {{[^ ]+}}, %{{[^ ]+}}
99
// CHECK: ret i64 %{{[^ ]+}}
1010
2u64.pow(exp)
@@ -14,7 +14,7 @@ pub fn a(exp: u32) -> u64 {
1414
#[no_mangle]
1515
pub fn b(exp: u32) -> i64 {
1616
// CHECK: %{{[^ ]+}} = icmp ugt i32 %exp, 64
17-
// CHECK: %{{[^ ]+}} = zext i32 %exp to i64
17+
// CHECK: %{{[^ ]+}} = zext{{( nneg)?}} i32 %exp to i64
1818
// CHECK: %{{[^ ]+}} = shl nuw i64 {{[^ ]+}}, %{{[^ ]+}}
1919
// CHECK: ret i64 %{{[^ ]+}}
2020
2i64.pow(exp)

0 commit comments

Comments
 (0)