Xamarin Public Jenkins (auto-signing) 279aa8f685 Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
2019-01-23 08:21:40 +00:00

18 lines
399 B
LLVM

; RUN: llc -march=hexagon -hexagon-small-data-threshold=0 < %s | FileCheck %s
@global = external global i32, align 4
; There was a bug causing ### to be printed. Make sure we print ## instead.
; CHECK-LABEL: foo
; CHECK: memw(##global) =
define void @foo(i32 %x) #0 {
entry:
%add = add nsw i32 %x, 1
store i32 %add, i32* @global, align 4
ret void
}
attributes #0 = { norecurse nounwind }