1 ; RUN: llc -O2 < %s -mtriple=aarch64-linux-gnu | FileCheck %s --check-prefixes=CHECK,CHECKN
2 ; RUN: llc -O2 < %s -mtriple=aarch64-linux-gnu -mattr=strict-align | FileCheck %s --check-prefixes=CHECK,CHECKS
4 declare i32 @bcmp(i8*, i8*, i64) nounwind readonly
5 declare i32 @memcmp(i8*, i8*, i64) nounwind readonly
7 define i1 @bcmp_b2(i8* %s1, i8* %s2) {
9 %bcmp = call i32 @bcmp(i8* %s1, i8* %s2, i64 15)
10 %ret = icmp eq i32 %bcmp, 0
13 ; CHECK-LABEL: bcmp_b2:
29 define i1 @bcmp_bs(i8* %s1, i8* %s2) optsize {
31 %memcmp = call i32 @memcmp(i8* %s1, i8* %s2, i64 31)
32 %ret = icmp eq i32 %memcmp, 0
35 ; CHECK-LABEL: bcmp_bs:
36 ; CHECKN-NOT: bl memcmp