Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/Mips/private-addr.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children |
line wrap: on
line source
; RUN: llc -mtriple=mips-pc-linux -relocation-model=pic < %s | FileCheck %s define private void @bar() { ret void } define void()* @foo() { ; CHECK: foo: ; CHECK: lw $[[REG:.*]], %got($bar)($1) ; CHECK-NEXT: jr $ra ; CHECK-NEXT: addiu $2, $[[REG]], %lo($bar) ret void()* @bar }