summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-01 05:50:56 +0000
committerChris Lattner <sabre@nondot.org>2006-03-01 05:50:56 +0000
commit27f5345b1fcc4d771b228cd06e0ede167fa4e6d2 (patch)
treecdb1fdec8f040e5a6a3f724d6fa1980fb72b4973 /llvm/lib/Target/PowerPC/PPCSubtarget.cpp
parent160cc9246114569c77d3cdf0fc130fecf289abb3 (diff)
downloadbcm5719-llvm-27f5345b1fcc4d771b228cd06e0ede167fa4e6d2.tar.gz
bcm5719-llvm-27f5345b1fcc4d771b228cd06e0ede167fa4e6d2.zip
Compile this:
void foo(float a, int *b) { *b = a; } to this: _foo: fctiwz f0, f1 stfiwx f0, 0, r4 blr instead of this: _foo: fctiwz f0, f1 stfd f0, -8(r1) lwz r2, -4(r1) stw r2, 0(r4) blr This implements CodeGen/PowerPC/stfiwx.ll, and also incidentally does the right thing for GCC bugzilla 26505. llvm-svn: 26447
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index 606dfc09799..0ef85dfd292 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -77,6 +77,7 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
, Has64BitRegs(false)
, HasAltivec(false)
, HasFSQRT(false)
+ , HasSTFIWX(false)
, IsAIX(false)
, IsDarwin(false) {
OpenPOWER on IntegriCloud