2 ; RUN: llvm-as %s -o %t.o
4 ; RUN: ld.lld -shared -save-temps %t.o -o %t2.o
5 ; RUN: llvm-dis < %t2.o.0.0.preopt.bc | FileCheck %s
7 ; CHECK: @GlobalValueName
10 ; CHECK: %GV = load i32, ptr @GlobalValueName
11 ; CHECK: %add = add i32 %in, %GV
14 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15 target triple = "x86_64-unknown-linux-gnu"
17 @GlobalValueName = global i32 0
19 define i32 @foo(i32 %in) {
21 %GV = load i32, ptr @GlobalValueName
22 %add = add i32 %in, %GV