blob: 81af0ab5a8f6347440413f01ab8436e990889834 [file] [log] [blame]
Evan Chengca0fb992008-09-04 06:18:33 +00001; RUN: llvm-as < %s | llc -fast-isel -mtriple=i386-apple-darwin -mattr=sse2 | \
2; RUN: grep mov | grep lazy_ptr | count 1
3
4@src = external global i32
5
6define i32 @loadgv() nounwind {
7entry:
8 %0 = load i32* @src, align 4
9 %1 = load i32* @src, align 4
10 %2 = add i32 %0, %1
11 ret i32 %2
12}