brintos

brintos / llvm-project-archived public Read only

0
0
Text · 957 B · 41d3577 Raw
19 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -expand-memcmp -memcmp-num-loads-per-block=1 -mtriple=x86_64-unknown-unknown -data-layout=e-m:o-i64:64-f80:128-n8:16:32:64-S128         < %s | FileCheck %s --check-prefix=X643; RUN: opt -S -passes=expand-memcmp -memcmp-num-loads-per-block=1 -mtriple=x86_64-unknown-unknown -data-layout=e-m:o-i64:64-f80:128-n8:16:32:64-S128         < %s | FileCheck %s --check-prefix=X644 5declare i32 @bcmp(ptr nocapture, ptr nocapture, i64)6 7define i32 @bcmp8(ptr nocapture readonly %x, ptr nocapture readonly %y)  {8; X64-LABEL: @bcmp8(9; X64-NEXT:    [[TMP3:%.*]] = load i64, ptr [[X:%.*]], align 110; X64-NEXT:    [[TMP4:%.*]] = load i64, ptr [[Y:%.*]], align 111; X64-NEXT:    [[TMP5:%.*]] = icmp ne i64 [[TMP3]], [[TMP4]]12; X64-NEXT:    [[TMP6:%.*]] = zext i1 [[TMP5]] to i3213; X64-NEXT:    ret i32 [[TMP6]]14;15  %call = tail call i32 @bcmp(ptr %x, ptr %y, i64 8)16  ret i32 %call17}18 19