diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll b/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll new file mode 100644 index 00000000000..b368cb43dbb --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll @@ -0,0 +1,21 @@ +; RUN: llc -mtriple powerpc-ibm-aix-xcoff \ +; RUN: -code-model=small < %s | FileCheck %s + +@b = common global i32 0 +@a = common global i32 0 + +define void @test() { + %1 = load i32, i32* @b + store i32 %1, i32* @a + ret void +} + +; CHECK-LABEL: test +; CHECK-DAG: lwz [[REG1:[0-9]+]], LC0(2) +; CHECK-DAG: lwz [[REG2:[0-9]+]], LC1(2) +; CHECK-DAG: lwz [[REG3:[0-9]+]], 0([[REG1]]) +; CHECK: stw [[REG3]], 0([[REG2]]) +; CHECK: blr + +; TODO Update test when TOC-entry emission lands. +; CHECK-NOT: .tc |

