Skip to content

Commit

Permalink
also handle memcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdesjardins committed Dec 24, 2020
1 parent f29b6b8 commit fae3ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/codegen/slice-ref-equality.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
pub fn is_zero_slice(data: &[u8; 4]) -> bool {
// CHECK: start:
// CHECK-NEXT: %{{.+}} = getelementptr {{.+}}
// CHECK-NEXT: %[[BCMP:.+]] = tail call i32 @bcmp({{.+}})
// CHECK-NEXT: %[[BCMP:.+]] = tail call i32 @{{bcmp|memcmp}}({{.+}})
// CHECK-NEXT: %[[EQ:.+]] = icmp eq i32 %[[BCMP]], 0
// CHECK-NEXT: ret i1 %[[EQ]]
*data == [0; 4]
Expand Down

0 comments on commit fae3ede

Please sign in to comment.