Home | History | Annotate | Download | only in X86
      1 # RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
      2 # This test ensures that the MIR parser parses immediate machine operands.
      3 
      4 --- |
      5 
      6   define i32 @foo() {
      7   entry:
      8     ret i32 42
      9   }
     10 
     11   define i32 @bar() {
     12   entry:
     13     ret i32 -11
     14   }
     15 
     16 ...
     17 ---
     18 # CHECK: name: foo
     19 name:            foo
     20 body: |
     21   bb.0.entry:
     22     ; CHECK:      %eax = MOV32ri 42
     23     ; CHECK-NEXT: RETQ %eax
     24     %eax = MOV32ri 42
     25     RETQ %eax
     26 ...
     27 ---
     28 # CHECK: name: bar
     29 name:            bar
     30 body: |
     31   bb.0.entry:
     32     ; CHECK:      %eax = MOV32ri -11
     33     ; CHECK-NEXT: RETQ %eax
     34     %eax = MOV32ri -11
     35     RETQ %eax
     36 ...
     37