Make this test less sensitive to codegen optimizations.
authorDan Gohman <gohman@apple.com>
Wed, 5 Oct 2011 18:13:08 +0000 (18:13 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 5 Oct 2011 18:13:08 +0000 (18:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141195 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/va_arg.ll

index bb4045311624dcc37d426eeb6e0aa5f14a89f1c6..af477b40a78134212a2ca402f6ceb3656e5e88d0 100644 (file)
@@ -30,6 +30,7 @@ entry:
   %ap1 = bitcast i8** %ap to i8*                  ; <i8*> [#uses=2]
   call void @llvm.va_start(i8* %ap1)
   %0 = va_arg i8** %ap, i32                       ; <i32> [#uses=0]
+  store i32 %0, i32* undef
   %1 = va_arg i8** %ap, double                    ; <double> [#uses=1]
   call void @llvm.va_end(i8* %ap1)
   ret double %1