brintos

brintos / llvm-project-archived public Read only

0
0
Text · 486 B · ae1a93e Raw
20 lines · plain
1; RUN: llc -mtriple=mipsel -mcpu=mips32r2 -mattr=+micromips \2; RUN:   -relocation-model=pic -O3 < %s | FileCheck %s3 4@g = external global i325 6; Function Attrs: noreturn nounwind7define void @foo() #0 {8entry:9  %0 = load i32, ptr @g, align 410  tail call void @exit(i32 signext %0)11  unreachable12}13 14; Function Attrs: noreturn15declare void @exit(i32 signext)16 17; CHECK: addu $gp, ${{[0-9]+}}, ${{[0-9]+}}18; CHECK: lw ${{[0-9]+}}, %got(g)($gp)19; CHECK: lw ${{[0-9]+}}, %call16(exit)($gp)20