summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-11 05:08:08 +0000
committerChris Lattner <sabre@nondot.org>2009-03-11 05:08:08 +0000
commit43d6377f894d52ebadc15091ceb2ecde6130646d (patch)
tree45db654fd184f8421280374611ed440cb547ad87 /llvm/test/CodeGen
parent90e213f025e32b796db9d526d41caa8c6b84c40c (diff)
downloadbcm5719-llvm-43d6377f894d52ebadc15091ceb2ecde6130646d.tar.gz
bcm5719-llvm-43d6377f894d52ebadc15091ceb2ecde6130646d.zip
reapply my previous patch (r66358) with a tweak to set the
alignment of the generated constant pool entry to the desired alignment of a type. If we don't do this, we end up trying to do movsd from 4-byte alignment memory. This fixes 450.soplex and 456.hmmer. llvm-svn: 66641
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/2009-03-07-FPConstSelect.ll2
-rw-r--r--llvm/test/CodeGen/X86/pic-cpool.ll6
2 files changed, 3 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/2009-03-07-FPConstSelect.ll b/llvm/test/CodeGen/X86/2009-03-07-FPConstSelect.ll
index fe19bddf551..28302c0f7b0 100644
--- a/llvm/test/CodeGen/X86/2009-03-07-FPConstSelect.ll
+++ b/llvm/test/CodeGen/X86/2009-03-07-FPConstSelect.ll
@@ -1,6 +1,4 @@
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | not grep xmm
-; FIXME: Failing this until the reverted patch is fixed.
-; XFAIL: *
; This should do a single load into the fp stack for the return, not diddle with xmm registers.
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-f80:128:128"
diff --git a/llvm/test/CodeGen/X86/pic-cpool.ll b/llvm/test/CodeGen/X86/pic-cpool.ll
index cac31ed2ad7..a2b5d265879 100644
--- a/llvm/test/CodeGen/X86/pic-cpool.ll
+++ b/llvm/test/CodeGen/X86/pic-cpool.ll
@@ -2,10 +2,10 @@
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
; RUN: grep piclabel %t | count 3
-; RUN: grep GOTOFF %t | count 2
-; RUN: grep CPI %t | count 4
+; RUN: grep GOTOFF %t | count 1
+; RUN: grep CPI %t | count 2
-define double @foo(i32 %a.u) {
+define double @foo(i32 %a.u) nounwind {
entry:
%tmp = icmp eq i32 %a.u,0
%retval = select i1 %tmp, double 4.561230e+02, double 1.234560e+02
OpenPOWER on IntegriCloud