aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-08-26 18:10:32 +0000
committerDale Johannesen <dalej@apple.com>2009-08-26 18:10:32 +0000
commit4e68f8803d8e28d52cc2f16a4eef5c175878b0f3 (patch)
treef4eb9064d72a265c4cbecc33e7a94e30b8e44b55 /test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
parente1182b5599f11778286f027eb536d7ddf7657eda (diff)
downloadexternal_llvm-4e68f8803d8e28d52cc2f16a4eef5c175878b0f3.zip
external_llvm-4e68f8803d8e28d52cc2f16a4eef5c175878b0f3.tar.gz
external_llvm-4e68f8803d8e28d52cc2f16a4eef5c175878b0f3.tar.bz2
Alter 79292 to produce output that actually assembles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll')
-rw-r--r--test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll b/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
index 9e0c5de..e1fa30a 100644
--- a/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
+++ b/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep add
+; RUN: llvm-as < %s | llc -march=ppc32 | FileCheck %s
; ModuleID = '<stdin>'
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128"
target triple = "powerpc-apple-darwin10.0"
@@ -9,6 +9,9 @@ target triple = "powerpc-apple-darwin10.0"
define void @foo(i32 %y) nounwind ssp {
entry:
+; CHECK: foo
+; CHECK: add r2
+; CHECK: 0(r2)
%y_addr = alloca i32 ; <i32*> [#uses=2]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
store i32 %y, i32* %y_addr