88// Thanks to poison semantics, this doesn't even need branches.
99
1010// CHECK-LABEL: @checked_sub_unsigned
11- // CHECK-SAME: (i16 noundef %a, i16 noundef %b)
11+ // CHECK-SAME: (i16{{.*}} %a, i16{{.*}} %b)
1212#[ no_mangle]
1313pub fn checked_sub_unsigned ( a : u16 , b : u16 ) -> Option < u16 > {
1414 // CHECK-DAG: %[[IS_SOME:.+]] = icmp uge i16 %a, %b
@@ -26,7 +26,7 @@ pub fn checked_sub_unsigned(a: u16, b: u16) -> Option<u16> {
2626// looking for no-wrap flags, we just need there to not be any masking.
2727
2828// CHECK-LABEL: @checked_shl_unsigned
29- // CHECK-SAME: (i32 noundef %a, i32 noundef %b)
29+ // CHECK-SAME: (i32{{.*}} %a, i32{{.*}} %b)
3030#[ no_mangle]
3131pub fn checked_shl_unsigned ( a : u32 , b : u32 ) -> Option < u32 > {
3232 // CHECK-DAG: %[[IS_SOME:.+]] = icmp ult i32 %b, 32
@@ -41,7 +41,7 @@ pub fn checked_shl_unsigned(a: u32, b: u32) -> Option<u32> {
4141}
4242
4343// CHECK-LABEL: @checked_shr_unsigned
44- // CHECK-SAME: (i32 noundef %a, i32 noundef %b)
44+ // CHECK-SAME: (i32{{.*}} %a, i32{{.*}} %b)
4545#[ no_mangle]
4646pub fn checked_shr_unsigned ( a : u32 , b : u32 ) -> Option < u32 > {
4747 // CHECK-DAG: %[[IS_SOME:.+]] = icmp ult i32 %b, 32
@@ -56,7 +56,7 @@ pub fn checked_shr_unsigned(a: u32, b: u32) -> Option<u32> {
5656}
5757
5858// CHECK-LABEL: @checked_shl_signed
59- // CHECK-SAME: (i32 noundef %a, i32 noundef %b)
59+ // CHECK-SAME: (i32{{.*}} %a, i32{{.*}} %b)
6060#[ no_mangle]
6161pub fn checked_shl_signed ( a : i32 , b : u32 ) -> Option < i32 > {
6262 // CHECK-DAG: %[[IS_SOME:.+]] = icmp ult i32 %b, 32
@@ -71,7 +71,7 @@ pub fn checked_shl_signed(a: i32, b: u32) -> Option<i32> {
7171}
7272
7373// CHECK-LABEL: @checked_shr_signed
74- // CHECK-SAME: (i32 noundef %a, i32 noundef %b)
74+ // CHECK-SAME: (i32{{.*}} %a, i32{{.*}} %b)
7575#[ no_mangle]
7676pub fn checked_shr_signed ( a : i32 , b : u32 ) -> Option < i32 > {
7777 // CHECK-DAG: %[[IS_SOME:.+]] = icmp ult i32 %b, 32
@@ -86,7 +86,7 @@ pub fn checked_shr_signed(a: i32, b: u32) -> Option<i32> {
8686}
8787
8888// CHECK-LABEL: @checked_add_one_unwrap_unsigned
89- // CHECK-SAME: (i32 noundef %x)
89+ // CHECK-SAME: (i32{{.*}} %x)
9090#[ no_mangle]
9191pub fn checked_add_one_unwrap_unsigned ( x : u32 ) -> u32 {
9292 // CHECK: %[[IS_MAX:.+]] = icmp eq i32 %x, -1
0 commit comments