[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / ARM / addrmode.ll
index 9ccff07d456bbc579878b7cad6ed69c8de3b6918..52bb9a20662ec907a0753a3453de8c2e3da8f8b3 100644 (file)
@@ -1,15 +1,19 @@
-; RUN: llc < %s -march=arm -stats |& grep asm-printer | grep 4
+; REQUIRES: asserts
+; RUN: llc -mtriple=arm-eabi -stats %s -o - 2>&1 | FileCheck %s
 
 define i32 @t1(i32 %a) {
        %b = mul i32 %a, 9
         %c = inttoptr i32 %b to i32*
-        %d = load i32* %c
+        %d = load i32, 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
+        %d = load i32, i32* %c
        ret i32 %d
 }
+
+; CHECK: 4 asm-printer
+