Benjamin Kramer | e4dff62 | 2016-02-04 16:21:38 +0000 | [diff] [blame] | 1 | ; XFAIL: * |
Colin LeMahieu | 2efa2d0 | 2015-03-09 21:48:13 +0000 | [diff] [blame] | 2 | ; RUN: llc -march=hexagon < %s | FileCheck %s |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3 | ; CHECK: r[[T0:[0-9]+]] = CONST32(#s2) |
Colin LeMahieu | bda31b4 | 2014-12-29 20:44:51 +0000 | [diff] [blame] | 4 | ; CHECK: memw(r29+#0) = r{{.}} |
Sirish Pande | 91856a1 | 2012-05-15 16:13:12 +0000 | [diff] [blame] | 5 | ; CHECK: memw(r29+#8) = r{{.}} |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 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) |