Krzysztof Parzyszek | a7c5f04 | 2015-10-16 20:38:54 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon -mcpu=hexagonv4 -disable-hsdr < %s | FileCheck %s |
Jyotsna Verma | 7ab68fb | 2013-02-04 15:52:56 +0000 | [diff] [blame] | 2 | ; CHECK: r{{[0-9]}}:{{[0-9]}} = combine({{r[0-9]|#0}}, r{{[0-9]}}) |
Sirish Pande | 91856a1 | 2012-05-15 16:13:12 +0000 | [diff] [blame] | 3 | ; CHECK: r{{[0-9]}}:{{[0-9]}} |= asl(r{{[0-9]}}:{{[0-9]}}, #32) |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 4 | |
| 5 | %struct.small = type { i32, i32 } |
| 6 | |
| 7 | @s1 = common global %struct.small zeroinitializer, align 4 |
| 8 | |
| 9 | define void @foo() nounwind { |
| 10 | entry: |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 11 | %0 = load i64, i64* bitcast (%struct.small* @s1 to i64*), align 1 |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 12 | call void @bar(i64 %0) |
| 13 | ret void |
| 14 | } |
| 15 | |
| 16 | declare void @bar(i64) |