diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-23 19:13:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-23 19:13:48 +0000 |
| commit | 5a813558fccf203e1f8733f4c8217a03fd87b430 (patch) | |
| tree | 8a0d61091371dfc2cdca994dc23e46e0ee21bc89 /test/CodeGen | |
| parent | e49737eb046479c0610f1254ef311a91036a5144 (diff) | |
Notes
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/ARM/alias_store.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/alias_store.ll b/test/CodeGen/ARM/alias_store.ll new file mode 100644 index 000000000000..48f21fc03eca --- /dev/null +++ b/test/CodeGen/ARM/alias_store.ll @@ -0,0 +1,16 @@ +; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s + +@X = constant {i8, i8 } { i8 0, i8 0 } +@XA = alias i8, getelementptr inbounds ({ i8, i8 }, {i8, i8}* @X, i32 0, i32 1) + +define void @f(i8** %p) align 2 { +entry: + store i8* @XA, i8 **%p, align 4 + ret void +} + +; CHECK: f: +; CHECK: ldr r{{.*}}, [[L:.*]] +; CHECK: [[L]]: +; CHECK-NEXT: .long XA +; CHECK: XA = X+1 |
