blob: 072f0574e70dab543f71150803d1c8f761960357 [file] [log] [blame]
Akira Hatanaka5c21c9e2011-08-12 21:30:06 +00001; RUN: llc -march=mips < %s | FileCheck %s
2
3%struct.S2 = type { %struct.S1, %struct.S1 }
4%struct.S1 = type { i8, i8 }
5
6@s2 = common global %struct.S2 zeroinitializer, align 1
7
8define void @foo1() nounwind {
9entry:
10; CHECK: ulw ${{[0-9]+}}, 2
11
12 tail call void @foo2(%struct.S1* byval getelementptr inbounds (%struct.S2* @s2, i32 0, i32 1)) nounwind
13 ret void
14}
15
16declare void @foo2(%struct.S1* byval)