| Akira Hatanaka | 2fcc1cf | 2011-08-12 21:30:06 +0000 | [diff] [blame] | 1 | ; 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 | |||||
| 8 | define void @foo1() nounwind { | ||||
| 9 | entry: | ||||
| 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 | |||||
| 16 | declare void @foo2(%struct.S1* byval) | ||||