From 33a8e4360f5050416130517e5c7a1007d06aa90f Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Wed, 3 Jun 2009 13:28:00 +0000 Subject: Import LLVM, at r72770. This should fix LLVM PR4225. --- test/CodeGen/ARM/str_pre-2.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeGen/ARM/str_pre-2.ll (limited to 'test/CodeGen/ARM') diff --git a/test/CodeGen/ARM/str_pre-2.ll b/test/CodeGen/ARM/str_pre-2.ll new file mode 100644 index 000000000000..247465f33201 --- /dev/null +++ b/test/CodeGen/ARM/str_pre-2.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | grep {str.*\\!} +; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | grep {ldr.*\\\[.*\], #+4} +; XFAIL: * + +@b = external global i64* + +define i64 @t(i64 %a) nounwind readonly { +entry: + %0 = load i64** @b, align 4 + %1 = load i64* %0, align 4 + %2 = mul i64 %1, %a + ret i64 %2 +} -- cgit v1.3