Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 669923002: Add frintp instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add disasm test. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 } 1929 }
1930 1930
1931 1931
1932 void Assembler::frintn(const FPRegister& fd, 1932 void Assembler::frintn(const FPRegister& fd,
1933 const FPRegister& fn) { 1933 const FPRegister& fn) {
1934 DCHECK(fd.SizeInBits() == fn.SizeInBits()); 1934 DCHECK(fd.SizeInBits() == fn.SizeInBits());
1935 FPDataProcessing1Source(fd, fn, FRINTN); 1935 FPDataProcessing1Source(fd, fn, FRINTN);
1936 } 1936 }
1937 1937
1938 1938
1939 void Assembler::frintp(const FPRegister& fd, const FPRegister& fn) {
1940 DCHECK(fd.SizeInBits() == fn.SizeInBits());
1941 FPDataProcessing1Source(fd, fn, FRINTP);
1942 }
1943
1944
1939 void Assembler::frintz(const FPRegister& fd, 1945 void Assembler::frintz(const FPRegister& fd,
1940 const FPRegister& fn) { 1946 const FPRegister& fn) {
1941 DCHECK(fd.SizeInBits() == fn.SizeInBits()); 1947 DCHECK(fd.SizeInBits() == fn.SizeInBits());
1942 FPDataProcessing1Source(fd, fn, FRINTZ); 1948 FPDataProcessing1Source(fd, fn, FRINTZ);
1943 } 1949 }
1944 1950
1945 1951
1946 void Assembler::fcmp(const FPRegister& fn, 1952 void Assembler::fcmp(const FPRegister& fn,
1947 const FPRegister& fm) { 1953 const FPRegister& fm) {
1948 DCHECK(fn.SizeInBits() == fm.SizeInBits()); 1954 DCHECK(fn.SizeInBits() == fm.SizeInBits());
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
3132 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); 3138 movz(scratch, (target_offset >> 16) & 0xFFFF, 16);
3133 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); 3139 movk(scratch, (target_offset >> 32) & 0xFFFF, 32);
3134 DCHECK((target_offset >> 48) == 0); 3140 DCHECK((target_offset >> 48) == 0);
3135 add(rd, rd, scratch); 3141 add(rd, rd, scratch);
3136 } 3142 }
3137 3143
3138 3144
3139 } } // namespace v8::internal 3145 } } // namespace v8::internal
3140 3146
3141 #endif // V8_TARGET_ARCH_ARM64 3147 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698