diff options
Diffstat (limited to 'test/CodeGen/X86/memcmp.ll')
| -rw-r--r-- | test/CodeGen/X86/memcmp.ll | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/CodeGen/X86/memcmp.ll b/test/CodeGen/X86/memcmp.ll index e5f1f526b467..6a51d60f636c 100644 --- a/test/CodeGen/X86/memcmp.ll +++ b/test/CodeGen/X86/memcmp.ll @@ -23,8 +23,7 @@ return: ; preds = %entry ret void ; CHECK-LABEL: memcmp2: ; CHECK: movzwl -; CHECK-NEXT: movzwl -; CHECK-NEXT: cmpl +; CHECK-NEXT: cmpw ; NOBUILTIN-LABEL: memcmp2: ; NOBUILTIN: callq } @@ -46,6 +45,21 @@ return: ; preds = %entry ; CHECK-NEXT: cmpl $28527, } +define void @memcmp2nb(i8* %X, i8* %Y, i32* nocapture %P) nounwind { +entry: + %0 = tail call i32 (...) @memcmp(i8* %X, i8* %Y, i32 2) nounwind nobuiltin ; <i32> [#uses=1] + %1 = icmp eq i32 %0, 0 ; <i1> [#uses=1] + br i1 %1, label %return, label %bb + +bb: ; preds = %entry + store i32 4, i32* %P, align 4 + ret void + +return: ; preds = %entry + ret void +; CHECK-LABEL: memcmp2nb: +; CHECK: callq +} define void @memcmp4(i8* %X, i8* %Y, i32* nocapture %P) nounwind { entry: |
