13 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -relocation-model=pic -filetype=asm < %s | \2; RUN: llvm-mc -triple=mipsel-linux-gnu --position-independent -filetype=obj | \3; RUN: llvm-objdump --no-print-imm-hex -d - | FileCheck %s4; RUN: llc -mtriple=mipsel-linux-gnu -relocation-model=pic -filetype=obj < %s | \5; RUN: llvm-objdump --no-print-imm-hex -d - | FileCheck %s6 7define void @foo() {8 call void asm sideeffect "\09.cprestore 512", "~{$1}"()9 ret void10}11 12; CHECK: sw $gp, 512($sp)13