Home | History | Annotate | Download | only in X86
      1 # RUN: llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s | FileCheck %s
      2 # This test ensures that the MIR parser parses subregisters in register operands
      3 # correctly.
      4 
      5 --- |
      6 
      7   define zeroext i1 @t(i1 %c) {
      8   entry:
      9     ret i1 %c
     10   }
     11 
     12 ...
     13 ---
     14 name:            t
     15 isSSA:           true
     16 tracksRegLiveness: true
     17 registers:
     18   - { id: 0, class: gr32 }
     19   - { id: 1, class: gr8 }
     20   - { id: 2, class: gr8 }
     21 body: |
     22   bb.0.entry:
     23     liveins: %edi
     24     ; CHECK:      %0 = COPY %edi
     25     ; CHECK-NEXT: %1 = COPY %0:sub_8bit
     26     %0 = COPY %edi
     27     %1 = COPY %0:sub_8bit
     28     %2 = AND8ri %1, 1, implicit-def %eflags
     29     %al = COPY %2
     30     RETQ %al
     31 ...
     32 
     33