brintos

brintos / llvm-project-archived public Read only

0
0
Text · 308 B · b6bbb80 Raw
12 lines · plain
1; RUN: opt < %s -S -passes=globalopt | FileCheck %s2 3@zero = internal global [10 x i32] zeroinitializer4 5define i32 @test1(i64 %idx) nounwind {6  %arrayidx = getelementptr inbounds [10 x i32], ptr @zero, i64 0, i64 %idx7  %l = load i32, ptr %arrayidx8  ret i32 %l9; CHECK-LABEL: @test1(10; CHECK: ret i32 011}12