brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 51e9ed6 Raw
34 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=aarch64-unknown-linux -run-pass=twoaddressinstruction -verify-machineinstrs %s -o - | FileCheck %s3# RUN: llc -mtriple=aarch64-unknown-linux --passes=two-address-instruction -verify-each %s -o - | FileCheck %s4 5# Verify that the register class is correctly constrained after the twoaddress replacement6---7name:              statepoint_twoaddr8tracksRegLiveness: true9stack:10  - { id: 0, name: '', type: default, offset: 0, size: 4, alignment: 4,11      stack-id: default, callee-saved-register: '', callee-saved-restored: true,12      local-offset: -4, debug-info-variable: '', debug-info-expression: '',13      debug-info-location: '' }14body:              |15  bb.0:16    liveins: $w017 18    ; CHECK-LABEL: name: statepoint_twoaddr19    ; CHECK: liveins: $w020    ; CHECK-NEXT: {{  $}}21    ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr64sp = COPY killed $x022    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr32 = COPY $xzr23    ; CHECK-NEXT: [[STATEPOINT:%[0-9]+]]:gpr64sp = STATEPOINT 2882400000, 0, 1, killed [[COPY1]], undef $x0, 2, 125, 2, 4, 2, 0, 2, 2, killed [[STATEPOINT]](tied-def 0), 2, 4278124286, 2, 0, 2, 2, 0, 0, 1, 1, csr_aarch64_aapcs, implicit-def $sp, implicit-def dead $x0, implicit-def dead early-clobber $lr :: (volatile load store (s32) on %stack.0)24    ; CHECK-NEXT: [[ADDXri:%[0-9]+]]:gpr64sp = ADDXri killed [[STATEPOINT]], 16, 025    ; CHECK-NEXT: $x0 = COPY killed [[ADDXri]]26    ; CHECK-NEXT: RET_ReallyLR implicit $x027    %0:gpr64all = COPY killed $x028    %1:gpr32 = COPY $xzr29    %2:gpr64sp = STATEPOINT 2882400000, 0, 1, killed %1, undef $x0, 2, 125, 2, 4, 2, 0, 2, 2, killed %0(tied-def 0), 2, 4278124286, 2, 0, 2, 2, 0, 0, 1, 1, csr_aarch64_aapcs, implicit-def $sp, implicit-def dead $x0, implicit-def dead early-clobber $lr :: (volatile load store (s32) on %stack.0)30    %3:gpr64sp = ADDXri killed %2, 16, 031    $x0 = COPY killed %332    RET_ReallyLR implicit $x033...34