brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 5715af5 Raw
40 lines · plain
1# RUN: llc -mtriple=i686 -run-pass none -o - %s | FileCheck %s2# This test ensures that the MIR parser parses fixed stack memory operands3# correctly.4 5--- |6 7  define i32 @test(i32 %a) #0 {8  entry:9    %b = alloca i3210    store i32 %a, ptr %b11    %c = load i32, ptr %b12    ret i32 %c13  }14 15  attributes #0 = { "frame-pointer"="none" }16 17...18---19name:            test20alignment:       1621tracksRegLiveness: true22frameInfo:23  stackSize:       424  maxAlignment:    425fixedStack:26  - { id: 0, offset: 0, size: 4, alignment: 16, isImmutable: true }27stack:28  - { id: 0, name: b, offset: -8, size: 4, alignment: 4 }29body: |30  bb.0.entry:31    frame-setup PUSH32r undef $eax, implicit-def $esp, implicit $esp32    CFI_INSTRUCTION def_cfa_offset 833  ; CHECK: name: test34  ; CHECK: $eax = MOV32rm $esp, 1, $noreg, 8, $noreg :: (load (s32) from %fixed-stack.0, align 16)35    $eax = MOV32rm $esp, 1, _, 8, _ :: (load (s32) from %fixed-stack.0, align 16)36    MOV32mr $esp, 1, _, 0, _, $eax :: (store (s32) into %ir.b)37    $edx = POP32r implicit-def $esp, implicit $esp38    RET32 $eax39...40