diff options
Diffstat (limited to 'test/CodeGen/ARM/thumb-alignment.ll')
-rw-r--r-- | test/CodeGen/ARM/thumb-alignment.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/thumb-alignment.ll b/test/CodeGen/ARM/thumb-alignment.ll new file mode 100644 index 0000000000..d256509879 --- /dev/null +++ b/test/CodeGen/ARM/thumb-alignment.ll @@ -0,0 +1,15 @@ +; RUN: llc -relocation-model=pic -mtriple=thumbv7-unknown-linux -o - %s | FileCheck %s + +@x = external global i32 + +; CHECK: .globl foo +; CHECK-NEXT: .align 2 +define i32* @foo() { + ret i32* @x +} + +; CHECK: .globl bar +; CHECK-NEXT: .align 1 +define i32* @bar() { + ret i32* zeroinitializer +} |