Krzysztof Parzyszek | 046090d | 2018-03-12 14:01:28 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=hexagon -hexagon-small-data-threshold=0 -disable-hexagon-amodeopt -hexagon-cext-threshold=1 < %s | FileCheck %s |
| 2 | ; Check commoning of global addresses. |
| 3 | |
| 4 | @g0 = external global i32 |
| 5 | |
| 6 | ; Function Attrs: nounwind |
| 7 | define zeroext i32 @f0() #0 { |
| 8 | b0: |
| 9 | ; CHECK: ##g0 |
| 10 | ; CHECK-NOT: ##g0 |
| 11 | %v0 = load i32, i32* @g0, align 1 |
| 12 | %v1 = mul nsw i32 100, %v0 |
| 13 | store i32 %v1, i32* @g0, align 1 |
| 14 | ret i32 %v1 |
| 15 | } |
| 16 | |
| 17 | attributes #0 = { nounwind } |