; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s

define ptr @test() nounwind {
; CHECK-LABEL: test:
; CHECK:       # %bb.0:
; CHECK-NEXT:    stwu 1, -16(1)
; CHECK-NEXT:    addi 3, 1, 10
; CHECK-NEXT:    addi 1, 1, 16
; CHECK-NEXT:    blr
  %alloca = alloca i32
  %gep = getelementptr i8, ptr %alloca, i32 -2
  ret ptr %gep
}
