brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · cf148f7 Raw
43 lines · plain
1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass=postra-machine-sink -verify-machineinstrs  -o - %s | FileCheck -check-prefix=RUN-POSTRA %s2# RUN: llc -mtriple=aarch64-none-linux-gnu -passes='postra-machine-sink' -o - %s | FileCheck -check-prefix=RUN-POSTRA %s3# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass=postra-machine-sink -opt-bisect-limit=0 -verify-machineinstrs  -o - %s | FileCheck -check-prefix=BISECT-NO-RUN-POSTRA %s4# RUN: llc -mtriple=aarch64-none-linux-gnu -passes='postra-machine-sink' -opt-bisect-limit=0 -o - %s | FileCheck -check-prefix=BISECT-NO-RUN-POSTRA %s5 6---7 8# Make sure the pass is run.9# Sink w19 to %bb.1.10# RUN-POSTRA-LABEL: name: sinkcopy111# RUN-POSTRA: bb.0:12# RUN-POSTRA-NOT: $w19 = COPY killed $w013# RUN-POSTRA: bb.1:14# RUN-POSTRA: liveins: $w0, $w115# RUN-POSTRA: renamable $w19 = COPY killed $w016 17# Make sure the pass it not run.18# BISECT-NO-RUN-POSTRA-LABEL: name: sinkcopy119# BISECT-NO-RUN-POSTRA: bb.0:20# BISECT-NO-RUN-POSTRA: $w19 = COPY killed $w021# BISECT-NO-RUN-POSTRA: bb.1:22# BISECT-NO-RUN-POSTRA: liveins: $w1, $w1923 24name: sinkcopy125tracksRegLiveness: true26body: |27  bb.0:28    liveins: $w0, $w129    $w1 = SUBSWri $w1, 1, 0, implicit-def $nzcv30    renamable  $w19 = COPY killed $w031    Bcc 11, %bb.1, implicit $nzcv32    B %bb.233 34  bb.1:35    liveins: $w1, $w1936    $w0 = ADDWrr $w1, $w1937    RET $x038 39  bb.2:40    $w0 = COPY $wzr41    RET   $x042...43