brintos

brintos / llvm-project-archived public Read only

0
0
Text · 569 B · 6b88528 Raw
28 lines · plain
1; RUN: llc -o - %s -relocation-model=pic | FileCheck %s2; Check that we do not get GOT relocations with the x86_64-pc-windows-macho3; triple.4target triple = "x86_64-pc-windows-macho"5 6@g = common global i32 0, align 47 8declare i32 @extbar()9 10; CHECK-LABEL: bar:11; CHECK: callq _extbar12; CHECK: leaq _extbar(%rip),13; CHECK-NOT: @GOT14define ptr @bar() {15  call i32 @extbar()16  ret ptr @extbar17}18 19; CHECK-LABEL: foo:20; CHECK: callq _bar21; CHECK: movl _g(%rip),22; CHECK-NOT: @GOT23define i32 @foo() {24  call ptr @bar()25  %gval = load i32, ptr @g, align 426  ret i32 %gval27}28