brintos

brintos / llvm-project-archived public Read only

0
0
Text · 653 B · 46f5be7 Raw
26 lines · plain
1; RUN: opt -S -passes=debugify,globalopt -f %s | FileCheck %s2 3@foo = internal global i32 0, align 44 5define void @store() {6entry:7  store i32 5, ptr @foo, align 48  ret void9}10 11define i32 @bar() {12entry:13  %0 = load i32, ptr @foo, align 414  ret i32 %015}16 17;CHECK:      @bar18;CHECK-NEXT: entry:19;CHECK-NEXT:   %.b = load i1, ptr @foo, align 1, !dbg ![[DbgLocLoadSel:[0-9]+]]20;CHECK-NEXT:   %0 = select i1 %.b, i32 5, i32 0, !dbg ![[DbgLocLoadSel]]21;CHECK-NEXT:   #dbg_value({{.*}},  ![[DbgLocLoadSel]]22;CHECK-NEXT:   ret i32 %0, !dbg ![[DbgLocRet:[0-9]+]]23 24;CHECK: ![[DbgLocLoadSel]] = !DILocation(line: 3,25;CHECK: ![[DbgLocRet]] = !DILocation(line: 4,26