brintos

brintos / llvm-project-archived public Read only

0
0
Text · 889 B · 398a2ac Raw
28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=aarch64-apple-ios -fast-isel -verify-machineinstrs | FileCheck %s3 4; Check that the kill flag is cleared between CSE'd instructions on their5; imp-def'd registers.6; The verifier would complain otherwise.7define i64 @csed_impdef_killflag(i64 %a) {8; CHECK-LABEL: csed_impdef_killflag:9; CHECK:       ; %bb.0:10; CHECK-NEXT:    mov w8, #1 ; =0x111; CHECK-NEXT:    cmp x0, #012; CHECK-NEXT:    mov x9, #2 ; =0x213; CHECK-NEXT:    csel w8, wzr, w8, ne14; CHECK-NEXT:    mov x10, #3 ; =0x315; CHECK-NEXT:    lsr w8, w8, #016; CHECK-NEXT:    csel x9, x9, x10, ne17; CHECK-NEXT:    add x0, x9, x818; CHECK-NEXT:    ret19 20  %1 = icmp ne i64 %a, 021  %2 = select i1 %1, i32 0, i32 122  %3 = icmp ne i64 %a, 023  %4 = select i1 %3, i64 2, i64 324  %5 = zext i32 %2 to i6425  %6 = add i64 %4, %526  ret i64 %627}28