brintos

brintos / llvm-project-archived public Read only

0
0
Text · 286 B · 778083e Raw
11 lines · plain
1; RUN: opt < %s -passes=instcombine -disable-output2 3@X = global i32 5               ; <ptr> [#uses=1]4 5define i64 @test() {6        %C = add i64 1, 2               ; <i64> [#uses=1]7        %V = add i64 ptrtoint (ptr @X to i64), %C              ; <i64> [#uses=1]8        ret i64 %V9}10 11