Revert the test moves from 176733. Use "REQUIRES: asserts" instead.
[oota-llvm.git] / test / CodeGen / ARM / addrmode.ll
diff --git a/test/CodeGen/ARM/addrmode.ll b/test/CodeGen/ARM/addrmode.ll
new file mode 100644 (file)
index 0000000..748d258
--- /dev/null
@@ -0,0 +1,16 @@
+; REQUIRES: asserts
+; RUN: llc < %s -march=arm -stats 2>&1 | grep asm-printer | grep 4
+
+define i32 @t1(i32 %a) {
+       %b = mul i32 %a, 9
+        %c = inttoptr i32 %b to i32*
+        %d = load i32* %c
+       ret i32 %d
+}
+
+define i32 @t2(i32 %a) {
+       %b = mul i32 %a, -7
+        %c = inttoptr i32 %b to i32*
+        %d = load i32* %c
+       ret i32 %d
+}