brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · dd52148 Raw
91 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=ALL3--- |4 5  define i8 @test() {6    ret i8 undef7  }8 9  define i8 @test2(i8 %a) {10    %r = add i8 %a, undef11    ret i8 %r12  }13 14  define float @test3() {15    ret float undef16  }17...18---19name:            test20alignment:       1621legalized:       true22regBankSelected: true23registers:24  - { id: 0, class: gpr, preferred-register: '' }25liveins:26fixedStack:27stack:28constants:29body:             |30  bb.1 (%ir-block.0):31    ; ALL-LABEL: name: test32    ; ALL: [[DEF:%[0-9]+]]:gr8 = IMPLICIT_DEF33    ; ALL-NEXT: $al = COPY [[DEF]]34    ; ALL-NEXT: RET 0, implicit $al35    %0(s8) = G_IMPLICIT_DEF36    $al = COPY %0(s8)37    RET 0, implicit $al38 39...40---41name:            test242alignment:       1643legalized:       true44regBankSelected: true45registers:46  - { id: 0, class: gpr, preferred-register: '' }47  - { id: 1, class: gpr, preferred-register: '' }48  - { id: 2, class: gpr, preferred-register: '' }49liveins:50fixedStack:51stack:52constants:53body:             |54  bb.1 (%ir-block.0):55    liveins: $edi56 57    ; ALL-LABEL: name: test258    ; ALL: liveins: $edi59    ; ALL-NEXT: {{  $}}60    ; ALL-NEXT: [[COPY:%[0-9]+]]:gr8 = COPY $dil61    ; ALL-NEXT: [[DEF:%[0-9]+]]:gr8 = IMPLICIT_DEF62    ; ALL-NEXT: [[ADD8rr:%[0-9]+]]:gr8 = ADD8rr [[COPY]], [[DEF]], implicit-def dead $eflags63    ; ALL-NEXT: $al = COPY [[ADD8rr]]64    ; ALL-NEXT: RET 0, implicit $al65    %0(s8) = COPY $dil66    %1(s8) = G_IMPLICIT_DEF67    %2(s8) = G_ADD %0, %168    $al = COPY %2(s8)69    RET 0, implicit $al70 71...72---73name:            test374alignment:       1675legalized:       true76regBankSelected: true77tracksRegLiveness: true78registers:79  - { id: 1, class: vecr }80body:             |81  bb.1 (%ir-block.0):82    ; ALL-LABEL: name: test383    ; ALL: [[DEF:%[0-9]+]]:vr128 = IMPLICIT_DEF84    ; ALL-NEXT: $xmm0 = COPY [[DEF]]85    ; ALL-NEXT: RET 0, implicit $xmm086    %1:vecr(s128) = G_IMPLICIT_DEF87    $xmm0 = COPY %1:vecr(s128)88    RET 0, implicit $xmm089 90...91