summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/cconv/arguments-float.ll
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-11-07 16:54:21 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-11-07 16:54:21 +0000
commitc43cda84ffb8af3b5a00b76ed23503b338a51c6f (patch)
treea72c90f52000046de3e0bcb494dc1e697e755a6a /llvm/test/CodeGen/Mips/cconv/arguments-float.ll
parentc48f7e76fa5bc6f8fc68cd4bce7144df563b013c (diff)
downloadbcm5719-llvm-c43cda84ffb8af3b5a00b76ed23503b338a51c6f.tar.gz
bcm5719-llvm-c43cda84ffb8af3b5a00b76ed23503b338a51c6f.zip
[mips] Promote i32 arguments to i64 for the N32/N64 ABI and fix <64-bit structs...
Summary: ... and after all that refactoring, it's possible to distinguish softfloat floating point values from integers so this patch no longer breaks softfloat to do it. Remove direct handling of i32's in the N32/N64 ABI by promoting them to i64. This more closely reflects the ABI documentation and also fixes problems with stack arguments on big-endian targets. We now rely on signext/zeroext annotations (already generated by clang) and the Assert[SZ]ext nodes to avoid the introduction of unnecessary sign/zero extends. It was not possible to convert three tests to use signext/zeroext. These tests are bswap.ll, ctlz-v.ll, ctlz-v.ll. It's not possible to put signext on a vector type so we just accept the sign extends here for now. These tests don't pass the vectors the same way clang does (clang puts multiple elements in the same argument, these map 1 element to 1 argument) so we don't need to worry too much about it. With this patch, all known N32/N64 bugs should be fixed and we now pass the first 10,000 tests generated by ABITest.py. Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6117 llvm-svn: 221534
Diffstat (limited to 'llvm/test/CodeGen/Mips/cconv/arguments-float.ll')
-rw-r--r--llvm/test/CodeGen/Mips/cconv/arguments-float.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/Mips/cconv/arguments-float.ll b/llvm/test/CodeGen/Mips/cconv/arguments-float.ll
index 0543c61d4d0..14a3baa7f53 100644
--- a/llvm/test/CodeGen/Mips/cconv/arguments-float.ll
+++ b/llvm/test/CodeGen/Mips/cconv/arguments-float.ll
@@ -135,8 +135,8 @@ entry:
; SYM64-DAG: ld [[R2:\$[0-9]]], %got_disp(floats)(
; The first four arguments are the same in O32/N32/N64.
-; The first argument isn't floating point so floating point registers are not
-; used.
+; The first argument is floating point but soft-float is enabled so floating
+; point registers are not used.
; MD00305 and GCC disagree on this one. MD00305 says that floats are treated
; as 8-byte aligned and occupy two slots on O32. GCC is treating them as 4-byte
; aligned and occupying one slot. We'll use GCC's definition.
@@ -195,7 +195,7 @@ entry:
; O32-DAG: sw $7, 12([[R2]])
; NEW-DAG: sd $5, 8([[R2]])
-define void @float_arg2(i8 %a, float %b) nounwind {
+define void @float_arg2(i8 signext %a, float %b) nounwind {
entry:
%0 = getelementptr [11 x i8]* @bytes, i32 0, i32 1
store volatile i8 %a, i8* %0
OpenPOWER on IntegriCloud