diff options
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/storerinewabs.ll')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/storerinewabs.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/storerinewabs.ll b/llvm/test/CodeGen/Hexagon/storerinewabs.ll new file mode 100644 index 00000000000..73e513a8bce --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/storerinewabs.ll @@ -0,0 +1,17 @@ +; 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 } + |

