Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc %s -march=mipsel -mattr=micromips -filetype=asm \
      2 ; RUN: -relocation-model=pic -O3 -o - | FileCheck %s
      3 
      4 ; Function Attrs: noinline nounwind
      5 define void @bar(i32* %p) #0 {
      6 entry:
      7   %p.addr = alloca i32*, align 4
      8   store i32* %p, i32** %p.addr, align 4
      9   %0 = load i32*, i32** %p.addr, align 4
     10   %1 = load i32, i32* %0, align 4
     11   %add = add nsw i32 7, %1
     12   %2 = load i32*, i32** %p.addr, align 4
     13   store i32 %add, i32* %2, align 4
     14   %3 = load i32*, i32** %p.addr, align 4
     15   %add.ptr = getelementptr inbounds i32, i32* %3, i32 1
     16   %4 = load i32, i32* %add.ptr, align 4
     17   %add1 = add nsw i32 7, %4
     18   %5 = load i32*, i32** %p.addr, align 4
     19   %add.ptr2 = getelementptr inbounds i32, i32* %5, i32 1
     20   store i32 %add1, i32* %add.ptr2, align 4
     21   ret void
     22 }
     23 
     24 ; CHECK: lw16 ${{[0-9]+}}, 0($4)
     25 ; CHECK: sw16 ${{[0-9]+}}, 0($4)
     26 ; CHECK: lw16 ${{[0-9]+}}, 4(${{[0-9]+}})
     27 ; CHECK: sw16 ${{[0-9]+}}, 4(${{[0-9]+}})
     28