Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/mips/loongson.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Intrinsics for ST Microelectronics Loongson-2E/2F SIMD operations. | 1 /* Intrinsics for ST Microelectronics Loongson-2E/2F SIMD operations. |
2 | 2 |
3 Copyright (C) 2008, 2009 Free Software Foundation, Inc. | 3 Copyright (C) 2008-2017 Free Software Foundation, Inc. |
4 Contributed by CodeSourcery. | 4 Contributed by CodeSourcery. |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
8 GCC is free software; you can redistribute it and/or modify it | 8 GCC is free software; you can redistribute it and/or modify it |
447 | 447 |
448 /* Shuffle halfwords. */ | 448 /* Shuffle halfwords. */ |
449 __extension__ static __inline uint16x4_t __attribute__ ((__always_inline__)) | 449 __extension__ static __inline uint16x4_t __attribute__ ((__always_inline__)) |
450 pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order) | 450 pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order) |
451 { | 451 { |
452 return __builtin_loongson_pshufh_u (dest, s, order); | 452 return __builtin_loongson_pshufh_u (s, order); |
453 } | 453 } |
454 | 454 |
455 __extension__ static __inline int16x4_t __attribute__ ((__always_inline__)) | 455 __extension__ static __inline int16x4_t __attribute__ ((__always_inline__)) |
456 pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order) | 456 pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order) |
457 { | 457 { |
458 return __builtin_loongson_pshufh_s (dest, s, order); | 458 return __builtin_loongson_pshufh_s (s, order); |
459 } | 459 } |
460 | 460 |
461 /* Shift left logical. */ | 461 /* Shift left logical. */ |
462 __extension__ static __inline uint16x4_t __attribute__ ((__always_inline__)) | 462 __extension__ static __inline uint16x4_t __attribute__ ((__always_inline__)) |
463 psllh_u (uint16x4_t s, uint8_t amount) | 463 psllh_u (uint16x4_t s, uint8_t amount) |