Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -mtriple="powerpc-unknown-linux-gnu" < %s | FileCheck %s --check-prefix=PPC32
      2 ; RUN: llc -mtriple="powerpc64-unknown-linux-gnu" < %s | FileCheck %s --check-prefix=PPC64
      3 ; PR15332
      4 
      5 define void @regalloc() nounwind {
      6 entry:
      7 	%0 = add i32 1, 2
      8 	ret void
      9 }
     10 ; PPC32-LABEL: regalloc:
     11 ; PPC32-NOT: stwu 1, -{{[0-9]+}}(1)
     12 ; PPC32: blr
     13 
     14 ; PPC64-LABEL: regalloc:
     15 ; PPC64-NOT: stdu 1, -{{[0-9]+}}(1)
     16 ; PPC64: blr
     17 
     18 define void @smallstack() nounwind {
     19 entry:
     20 	%0 = alloca i8, i32 4
     21 	ret void
     22 }
     23 ; PPC32-LABEL: smallstack:
     24 ; PPC32: stwu 1, -16(1)
     25 
     26 ; PPC64-LABEL: smallstack:
     27 ; PPC64-NOT: stdu 1, -{{[0-9]+}}(1)
     28 ; PPC64: blr
     29 
     30 define void @bigstack() nounwind {
     31 entry:
     32 	%0 = alloca i8, i32 230
     33 	ret void
     34 }
     35 ; PPC32-LABEL: bigstack:
     36 ; PPC32: stwu 1, -240(1)
     37 
     38 ; PPC64-LABEL: bigstack:
     39 ; PPC64: stdu 1, -288(1)
     40