1 ; RUN: opt < %s -S | FileCheck %s
2 ; RUN: opt < %s | opt -S -discard-value-names | FileCheck --check-prefix=NONAME %s
5 ; CHECK: @GlobalValueName
8 ; CHECK: %GV = load i32, i32* @GlobalValueName
9 ; CHECK: %add = add i32 %in, %GV
12 ; NONAME: @GlobalValueName
13 ; NONAME: @foo(i32 %0)
14 ; NONAME-NOT: somelabel:
15 ; NONAME: %2 = load i32, i32* @GlobalValueName
16 ; NONAME: %3 = add i32 %0, %2
19 @GlobalValueName = global i32 0
21 define i32 @foo(i32 %in) {
23 %GV = load i32, i32* @GlobalValueName
24 %add = add i32 %in, %GV