| Krzysztof Parzyszek | 5ffee8d | 2016-04-19 20:20:33 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon -hexagon-small-data-threshold=0 < %s | FileCheck %s |
| 2 | |||||
| 3 | @global = external global i32, align 4 | ||||
| 4 | |||||
| 5 | ; There was a bug causing ### to be printed. Make sure we print ## instead. | ||||
| 6 | ; CHECK-LABEL: foo | ||||
| 7 | ; CHECK: memw(##global) = | ||||
| 8 | |||||
| 9 | define void @foo(i32 %x) #0 { | ||||
| 10 | entry: | ||||
| 11 | %add = add nsw i32 %x, 1 | ||||
| 12 | store i32 %add, i32* @global, align 4 | ||||
| 13 | ret void | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | attributes #0 = { norecurse nounwind } | ||||
| 17 | |||||