[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-core.git] / test / CodeGen / Mips / micromips-gp-rc.ll
blobf139f7a8486da260e28ed1e07766a58c8ae7c796
1 ; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
2 ; RUN:   -relocation-model=pic -O3 < %s | FileCheck %s
4 @g = external global i32
6 ; Function Attrs: noreturn nounwind
7 define void @foo() #0 {
8 entry:
9   %0 = load i32, i32* @g, align 4
10   tail call void @exit(i32 signext %0)
11   unreachable
14 ; Function Attrs: noreturn
15 declare void @exit(i32 signext)
17 ; CHECK: move $gp, ${{[0-9]+}}