Sirish Pande | 1d195b9 | 2012-04-12 21:06:54 +0000 | [diff] [blame] | 1 | ; RUN: true |
| 2 | ; DISABLED: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3 | ; CHECK: r[[T0:[0-9]+]] = CONST32(#s2) |
| 4 | ; CHECK: r[[T1:[0-9]+]] = memw(r[[T0]] + #0) |
| 5 | ; CHECK: memw(r29 + #0) = r[[T1]] |
| 6 | |
| 7 | %struct.large = type { i64, i64 } |
| 8 | |
| 9 | @s2 = common global %struct.large zeroinitializer, align 8 |
| 10 | |
| 11 | define void @foo() nounwind { |
| 12 | entry: |
| 13 | call void @bar(%struct.large* byval @s2) |
| 14 | ret void |
| 15 | } |
| 16 | |
| 17 | declare void @bar(%struct.large* byval) |