summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2012-11-16 18:51:59 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2012-11-16 18:51:59 +0000
commit98f57cacaecb278c702612f1cf0c3d9a280b072d (patch)
treea9bcde0c4f5c90ff8c965de5af973fbe030f3d49 /llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll
parentc78249356dd545d42841af9875dd8dfd5ce58468 (diff)
downloadbcm5719-llvm-98f57cacaecb278c702612f1cf0c3d9a280b072d.tar.gz
bcm5719-llvm-98f57cacaecb278c702612f1cf0c3d9a280b072d.zip
Adding new tests to test lli's pseudo-remote feature (-remote-mcjit).
llvm-svn: 168180
Diffstat (limited to 'llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll')
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll b/llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll
new file mode 100644
index 00000000000..24b68105404
--- /dev/null
+++ b/llvm/test/ExecutionEngine/MCJIT/test-data-align-remote.ll
@@ -0,0 +1,15 @@
+; RUN: %lli -mtriple=%mcjit_triple -use-mcjit -remote-mcjit -O0 %s
+
+; Check that a variable is always aligned as specified.
+
+@var = global i32 0, align 32
+define i32 @main() {
+ %addr = ptrtoint i32* @var to i64
+ %mask = and i64 %addr, 31
+ %tst = icmp eq i64 %mask, 0
+ br i1 %tst, label %good, label %bad
+good:
+ ret i32 0
+bad:
+ ret i32 1
+}
OpenPOWER on IntegriCloud