mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 12:30:44 +00:00
2d715342de
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266811 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
399 B
LLVM
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 }
|
|
|