[llvm-branch-commits] [llvm-branch] r80125 - in /llvm/branches/Apple/Bender-SWB: lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
Bill Wendling
isanbard at gmail.com
Wed Aug 26 11:40:08 PDT 2009
Author: void
Date: Wed Aug 26 13:40:08 2009
New Revision: 80125
URL: http://llvm.org/viewvc/llvm-project?rev=80125&view=rev
Log:
$ svn merge -c 80119 https://llvm.org/svn/llvm-project/llvm/trunk
--- Merging r80119 into '.':
U test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
U lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
Modified:
llvm/branches/Apple/Bender-SWB/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
llvm/branches/Apple/Bender-SWB/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
Modified: llvm/branches/Apple/Bender-SWB/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Bender-SWB/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp?rev=80125&r1=80124&r2=80125&view=diff
==============================================================================
--- llvm/branches/Apple/Bender-SWB/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp (original)
+++ llvm/branches/Apple/Bender-SWB/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp Wed Aug 26 13:40:08 2009
@@ -485,7 +485,9 @@
if (ExtraCode && ExtraCode[0])
return true; // Unknown modifier.
assert (MI->getOperand(OpNo).isReg());
+ O << "0(";
printOperand(MI, OpNo);
+ O << ")";
return false;
}
Modified: llvm/branches/Apple/Bender-SWB/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Bender-SWB/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll?rev=80125&r1=80124&r2=80125&view=diff
==============================================================================
--- llvm/branches/Apple/Bender-SWB/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll (original)
+++ llvm/branches/Apple/Bender-SWB/test/CodeGen/PowerPC/2009-08-17-inline-asm-addr-mode-breakage.ll Wed Aug 26 13:40:08 2009
@@ -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 @@
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
More information about the llvm-branch-commits
mailing list