We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ada5ef + bdf7404 commit f402b8bCopy full SHA for f402b8b
tests/codegen/pow_of_two.rs
@@ -4,7 +4,7 @@
4
#[no_mangle]
5
pub fn a(exp: u32) -> u64 {
6
// CHECK: %{{[^ ]+}} = icmp ugt i32 %exp, 64
7
- // CHECK: %{{[^ ]+}} = zext i32 %exp to i64
+ // CHECK: %{{[^ ]+}} = zext{{( nneg)?}} i32 %exp to i64
8
// CHECK: %{{[^ ]+}} = shl nuw i64 {{[^ ]+}}, %{{[^ ]+}}
9
// CHECK: ret i64 %{{[^ ]+}}
10
2u64.pow(exp)
@@ -14,7 +14,7 @@ pub fn a(exp: u32) -> u64 {
14
15
pub fn b(exp: u32) -> i64 {
16
17
18
19
20
2i64.pow(exp)
0 commit comments